/* ===== Mobile CSS per larghezza max 440px ===== */
:root {
  /* 🎨 Palette Colori */
  --colore-primario: #0f1e30;
  /* Blu notte */
  --colore-secondario: #345969;
  /* Blu petrolio */
  --colore-chiaro: #f1efec;
  /* Grigio chiaro */
  --colore-accento: #f55203;
  /* Arancione */

  /* 🅰️ Font principali */
  --font-display: 'League Gothic', sans-serif;
  --font-testo: 'Open Sans', sans-serif;
}



body {
  font-size: 16px;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}









/* Header base */
.site-header {
  position: relative;
  z-index: 1000;
  background-color: #0f1e30;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo a {
  font-size: 3.5rem;
  color: white;
  text-decoration: none;
  font-family: 'League Gothic', sans-serif;
}

/* Nascondi elementi desktop */
.nav-group,
.desktop-only {
  display: none;
}

/* Hamburger button */
.hamburger {
  position: relative;
  z-index: 1002; /* Sopra il menu per evitare sovrapposizioni */
  background : transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-box {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 18px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: -1px;
}

.hamburger-inner {
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner::before {
  content: '';
  top: -8px;
}

.hamburger-inner::after {
  content: '';
  bottom: -8px;
}

/* Animazione X quando aperto */
.hamburger[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Overlay scuro */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  pointer-events: none;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Menu mobile principale */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Importante per occupare tutta la larghezza */
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #0f1e30 0%, #1a2b3d 100%);

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 40px; /* Padding top ridotto per evitare sovrapposizione */
  box-sizing: border-box;

  /* Stato iniziale nascosto */
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 999;

  /* Scroll */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Menu aperto */
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Wrapper per i link */
.mobile-menu-wrapper {
  width: 100%;
  max-width: 100%; /* Occupa tutta la larghezza disponibile */
  padding: 0 20px; /* Padding interno invece di max-width */
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Link del menu */
.mobile-menu-wrapper a {
  display: block;
  width: 100%;
  color: white;
  font-family: 'League Gothic', sans-serif;
  font-size: 1.8rem;
  text-decoration: none;
  text-align: center;
  padding: 16px 24px;
  border-radius: 12px;
  transition: all 0.3s ease !important;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;

  /* Stile glassmorphism */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Stati hover e focus */
.mobile-menu-wrapper a:hover,
.mobile-menu-wrapper a:focus {
  background: var(--colore-primario);
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 82, 3, 0.4);
  border-color: #f55203;
}

/* Effetto ripple al tap */
.mobile-menu-wrapper a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.mobile-menu-wrapper a:active::after {
  width: 300%;
  height: 300%;
}

/* Stile per link attivo nel menu mobile */
.mobile-menu-wrapper a.active {
  background: #f55203 !important;
  border: 2px solid #f55203 !important;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(245, 82, 3, 0.5);
}

/* Hover diverso dal active */
.mobile-menu-wrapper a:not(.active):hover,
.mobile-menu-wrapper a:not(.active):focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.02);
}

/* Per la homepage - nessun link attivo */
body.homepage .mobile-menu-wrapper a {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Fix per rimuovere qualsiasi stile hardcoded sul primo elemento */
.mobile-menu-wrapper a:first-child {
  /* Reset di eventuali stili specifici */
  border-color: inherit;
  background-color: inherit;
}

/* Override finale per sicurezza */
.mobile-menu-wrapper a:first-child:not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Assicurati che solo il link attivo abbia il bordo arancione */
.mobile-menu-wrapper a:not(.active) {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Animazioni staggered per i link */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu.open .mobile-menu-wrapper a:nth-child(1) { animation: slideInFromRight 0.3s ease 0.1s both; }
.mobile-menu.open .mobile-menu-wrapper a:nth-child(2) { animation: slideInFromRight 0.3s ease 0.15s both; }
.mobile-menu.open .mobile-menu-wrapper a:nth-child(3) { animation: slideInFromRight 0.3s ease 0.2s both; }
.mobile-menu.open .mobile-menu-wrapper a:nth-child(4) { animation: slideInFromRight 0.3s ease 0.25s both; }
.mobile-menu.open .mobile-menu-wrapper a:nth-child(5) { animation: slideInFromRight 0.3s ease 0.3s both; }
.mobile-menu.open .mobile-menu-wrapper a:nth-child(6) { animation: slideInFromRight 0.3s ease 0.35s both; }

/* Body bloccato quando menu aperto */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Media query per schermi piccoli in altezza */
@media screen and (max-height: 600px) {
  .mobile-menu {
    padding: 40px 20px 30px;
  }

  .mobile-menu::before {
    font-size: 2rem;
    top: 10px;
  }

  .mobile-menu-wrapper a {
    padding: 12px 20px;
    font-size: 1.5rem;
  }

  .mobile-menu-wrapper {
    gap: 8px;
  }
}

/* Fix per iPhone con notch/dynamic island */
@supports (padding: max(0px)) {
  .mobile-menu {
    padding-top: max(60px, env(safe-area-inset-top) + 40px);
    padding-top: max(120px, env(safe-area-inset-top) + 80px);
    padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px);
  }
}

/* Elementi visibili solo su mobile */
.mobile-only {
  display: block;
}

.video-desktop {
    display: none;
  }

.video-mobile {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; /* così riempie bene la sezione */
  }

/* Logo in fondo al menu mobile */
.mobile-menu-logo {
  margin-top: auto; /* spinge il logo verso il basso */
  padding: 30px 0 10px;
  display: flex;
  justify-content: center;
}

.mobile-menu-logo img {
  max-width: 120px;   /* dimensione equilibrata per mobile */
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mobile-menu-logo img:hover {
  opacity: 1;
}





/* === Sezione AGENZIA - Mobile === */
.about {
  flex-direction: column;
  padding: 20px 20px 40px;
  margin-bottom: 0;
  gap: 30px;
}

.about-left,
.about-right {
  max-width: 100%;
  width: 100%;
}

.about-left h2 {
  font-size: 3rem;
  font-family: 'League Gothic', sans-serif;
  color: #0f1e30;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-left h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.about-left p,
.about-left ul {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}

.about-left ul {
  padding-left: 1.2rem;
}

.about-left li {
  margin-bottom: 15px;
}

/* ✅ Pulsante centrato */
.about-left .btn {
  display: inline-block;
  width: calc(100% - 40px);
  max-width: 300px;
  margin: 40px auto;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 30, 48, 0.3);
  display: block;
}

.about-left .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(245, 82, 3, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.about-left .btn:hover {
  background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
  box-shadow: 0 6px 20px rgba(245, 82, 3, 0.4);
  transform: translateY(-2px);
}

.about-left .btn:active::before {
  width: 300px;
  height: 300px;
}

/* ✅ Immagini affiancate correttamente */
.about-right {
  margin: 0 !important;
  padding: 0 !important;
}

.about-right .image-wrapper {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: stretch;
}

.image-large,
.image-small {
  flex: 1;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  position: relative;
}

.image-large img,
.image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

/* ✅ Overlay disattivato su mobile */
.gradient-overlay-agenzia {
  display: none;
}





/* Know-How-competenze === */
.expertises {
  flex-direction: column;
  padding: 40px 0px;
  gap: 30px;
  background-color: var(--colore-chiaro);
}

.knowhow-image {
  max-width: 100%;
  margin-bottom: 20px; /* ✅ Diminuisce spazio sotto l’immagine */
}

.image-wrapper {
  height: auto;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.knowhow-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ✅ Allinea a sinistra */
  gap: 20px;
}

.knowhow-content h2 {
  font-size: 3rem;
  font-family: 'League Gothic', sans-serif;
  color: #0f1e30;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.knowhow-content h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.knowhow-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.knowhow-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expertise {
  width: 100%;
  padding: 12px 0px;
  background-color: var(--colore-primario);
  color: white;
  font-family: var(--font-sottotitoli);
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box;
}





/* === Progetti Carousel === */
.solo-mobile {
  display: block;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.progetti-section {
  padding: 40px 0;
  background-color: white;
  position: relative;
}

/* Header con titolo */
.progetti-header {
  padding: 0 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.progetti-header h2 {
  font-size: 3rem;
  font-family: 'League Gothic', sans-serif;
  color: #0f1e30;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progetti-header h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Container del carosello */
.progetti-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* Lista progetti come carosello orizzontale */
.progetti-list {
  display: flex;
  flex-direction: row; /* Cambiato da column a row */
  gap: 20px;
  padding: 0 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.progetti-list::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Card progetto */
.progetto {
  flex: 0 0 85%; /* Mostra circa 85% della card */
  background: white;
  overflow: hidden;
  text-align: center;
  scroll-snap-align: center;
  box-shadow: 0 10px 30px rgba(15, 30, 48, 0.15);
  transition: all 0.3s ease;
  position: relative;
  cursor: grab;
}

.progetto:active {
  cursor: grabbing;
  transform: scale(0.98);
}

/* Immagine progetto */
.progetto-img-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.progetto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.progetto:hover img {
  transform: scale(1.1);
}

/* Overlay gradient sull'immagine */
.progetto-img-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 30, 48, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progetto:hover .progetto-img-container::after {
  opacity: 1;
}

/* Badge categoria */
.progetto-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f55203;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Titolo progetto */
.progetto h3 {
  font-family: 'League Gothic', sans-serif;
  font-size: 1.8rem;
  margin: 0;
  padding: 20px;
  color: #0f1e30;
  background: white;
  position: relative;
}

/* Linea decorativa sotto il titolo */
.progetto h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #f55203;
  transition: width 0.3s ease;
}

.progetto:hover h3::after {
  width: 60px;
}

/* Indicatori di navigazione (dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 30, 48, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #f55203;
}

/* Pulsanti di navigazione laterali */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid rgba(15, 30, 48, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(15, 30, 48, 0.1);
}

.carousel-nav:hover {
  background: #f55203;
  border-color: #f55203;
  color: white;
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-nav::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-nav.prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.carousel-nav.next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* CTA Button modernizzato */
.btn-progetti {
  display: inline-block;
  width: calc(100% - 40px);
  max-width: 300px;
  margin: 40px auto;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 30, 48, 0.3);
  display: block;
}

.btn-progetti::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(245, 82, 3, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-progetti:hover {
  background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
  box-shadow: 0 6px 20px rgba(245, 82, 3, 0.4);
  transform: translateY(-2px);
}

.btn-progetti:active::before {
  width: 300px;
  height: 300px;
}

/* Animazione swipe hint */
@keyframes swipeHint {
  0% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.progetti-list.show-hint {
  animation: swipeHint 1s ease-out 2;
}

/* Media query per schermi molto piccoli */
@media screen and (max-width: 360px) {
  .progetto {
    flex: 0 0 90%;
  }

  .progetto-img-container {
    height: 200px;
  }

  .progetto h3 {
    font-size: 1.5rem;
    padding: 15px;
  }
}

.progetti-carousel {
  display: none;
}










/* FOOTER MOBILE CSS - Modern Design */

@media screen and (max-width: 768px) {
  .site-footer {
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    color: var(--colore-chiaro);
    position: relative;
    overflow: hidden;
  }

  .site-footer::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 82, 3, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
  }

  /* CTA Section Mobile */
  .footer-cta {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cta-content h2 {
    font-family: var(--font-titoli);
    font-size: clamp(2.5rem, 8vw, 3rem);
    color: var(--colore-chiaro);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
  }

  .cta-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .cta-content p {
    font-family: var(--font-testo);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 35px 0;
    line-height: 1.6;
    padding: 0 10px;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-sottotitoli);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
  }

  .btn-primary {
    background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 82, 3, 0.3);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn-primary:active {
    transform: scale(0.98);
  }

  .btn-primary:active::before {
    width: 300px;
    height: 300px;
  }

  .btn-secondary {
    background: transparent;
    color: var(--colore-chiaro);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f55203;
    color: #f55203;
  }

  /* Main Footer Content Mobile */
  .footer-main {
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .footer-column h4 {
    font-family: var(--font-titoli);
    font-size: 1.2rem;
    color: var(--colore-chiaro);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-align: center;
  }

  .footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #f55203;
    border-radius: 1px;
  }

  /* Company Column Mobile */
  .footer-column:first-child {
    text-align: center;
    order: -1;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-logo h3 {
    font-family: var(--font-titoli);
    font-size: 2.5rem;
    color: var(--colore-chiaro);
    margin: 0;
    line-height: 1;
  }

  .footer-logo .tagline {
    font-family: var(--font-sottotitoli);
    font-size: 0.85rem;
    color: #f55203;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-top: 5px;
  }

  .company-description {
    font-family: var(--font-testo);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 25px 0;
    padding: 0 10px;
  }

  .social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .social-links a:active {
    background: linear-gradient(135deg, #f55203, #ff7a3d);
    transform: scale(0.95);
  }

  .social-links img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
  }

  /* Navigation Lists Mobile */
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .footer-column li {
    margin-bottom: 15px;
  }

  .footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-testo);
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
  }

  .footer-column a:active {
    color: #f55203;
  }

  /* Contact Info Mobile */
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #f55203;
    backdrop-filter: blur(10px);
    text-align: center;
    width: 100%;
    max-width: 400px;
  }

  .contact-item strong {
    font-family: var(--font-sottotitoli);
    font-size: 0.85rem;
    color: #f55203;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
  }

  .contact-item p {
    font-family: var(--font-testo);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
  }

  /* Newsletter Section Mobile */
  .footer-newsletter {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
  }

  .newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .newsletter-text h4 {
    font-family: var(--font-titoli);
    font-size: 1.5rem;
    color: var(--colore-chiaro);
    margin: 0 0 10px 0;
    text-transform: uppercase;
  }

  .newsletter-text p {
    font-family: var(--font-testo);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    padding: 0 10px;
  }

  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
  }

  .newsletter-form input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--colore-chiaro);
    font-family: var(--font-testo);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
  }

  .newsletter-form input:focus {
    outline: none;
    border-color: #f55203;
    background: rgba(255, 255, 255, 0.15);
  }

  .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .newsletter-form button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: var(--font-sottotitoli);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 82, 3, 0.3);
  }

  .newsletter-form button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(245, 82, 3, 0.4);
  }

  /* Footer Bottom Mobile */
  .footer-bottom {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
  }

  .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: var(--font-testo);
    font-size: 0.85rem;
    transition: color 0.3s ease;
    padding: 5px;
  }

  .legal-links a:active {
    color: #f55203;
  }

  .copyright {
    text-align: center;
  }

  .copyright span {
    font-family: var(--font-testo);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
  }

  .certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-family: var(--font-sottotitoli);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .footer-cta {
    padding: 50px 15px;
  }

  .cta-content h2 {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .cta-content p {
    font-size: 1rem;
    padding: 0 5px;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 280px;
    padding: 14px 25px;
    font-size: 0.95rem;
  }

  .footer-main {
    padding: 50px 15px 30px;
  }

  .footer-grid {
    gap: 35px;
  }

  .footer-column h4 {
    font-size: 1.1rem;
  }

  .footer-logo h3 {
    font-size: 2.2rem;
  }

  .company-description {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
  }

  .social-links img {
    width: 24px;
    height: 24px;
  }

  .footer-column a {
    font-size: 0.95rem;
  }

  .contact-item {
    padding: 12px;
  }

  .footer-newsletter {
    padding: 35px 15px;
  }

  .newsletter-text h4 {
    font-size: 1.3rem;
  }

  .newsletter-text p {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .newsletter-form {
    max-width: 300px;
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding: 25px 15px;
  }

  .legal-links a {
    font-size: 0.8rem;
  }

  .copyright span {
    font-size: 0.8rem;
  }

  .certifications {
    font-size: 0.7rem;
  }
}

/* Extra small mobile */
@media screen and (max-width: 360px) {
  .cta-content h2 {
    font-size: clamp(1.8rem, 6vw, 2rem);
  }

  .footer-logo h3 {
    font-size: 2rem;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links img {
    width: 22px;
    height: 22px;
  }

  .newsletter-form {
    max-width: 280px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .social-links a:hover,
  .footer-column a:hover,
  .legal-links a:hover,
  .newsletter-form button:hover {
    transform: none;
    box-shadow: initial;
    color: initial;
    background: initial;
    border-color: initial;
  }
}











/* CHI SIAMO */
@media screen and (max-width: 768px) {

  /* ABOUT HERO SECTION - Mobile */
  .about-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .about-hero::before {
    content: 'ABOUT';
    position: absolute;
    top: 15%;
    right: 10%;
    font-size: 3rem;
    font-family: var(--font-titoli);
    color: rgba(255, 255, 255, 0.05);
    font-weight: bold;
    z-index: 1;
    pointer-events: none;
    letter-spacing: 5px;
    transform: rotate(10deg);
  }

  .hero-left {
    flex: none;
    background: transparent;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .hero-left h1 {
    font-size: clamp(6rem, 15vw, 8rem);
    line-height: 0.9;
    margin: 0;
    text-align: center;
    font-family: var(--font-titoli);
    color: var(--colore-chiaro);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
  }

  .hero-left h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .hero-intro {
    font-size: 1rem;
    line-height: 1.6;
    text-align: start;
    margin-top: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-testo);
    max-width: 100%;
  }

  /* Hide images section on mobile for cleaner design */
  .hero-right {
    display: none;
  }

  /* If you want to show images on mobile, uncomment and modify: */

  .hero-right {
    flex: none;
    background: transparent;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 300px;
  }

  .news-item {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* TEAM SECTION - Mobile */
  .team-section {
    padding: 60px 20px;
    background-color: white;
    color: var(--colore-primario);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }

  .team-section::before {
    content: 'TEAM';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    font-size: 4rem;
    font-family: var(--font-titoli);
    color: rgba(15, 30, 48, 0.03);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 8px;
  }

  .team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .team-header h2 {
    font-size: clamp(4rem, 12vw, 6rem);
    text-align: center;
    margin: 0;
    font-family: var(--font-titoli);
    color: var(--colore-primario);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
  }

  .team-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .team-header .intro {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--font-testo);
    color: var(--colore-primario);
  }

  .team-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
  }

  .card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 82, 3, 0.1);
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    z-index: 2;
  }

  .card:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(15, 30, 48, 0.15);
  }

  .card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .card .card-info {
    padding: 20px;
    text-align: center;
    position: relative;
  }

  .card-info h3 {
    margin: 0 0 8px 0;
    font-family: var(--font-numeri);
    font-size: 1.5rem;
    color: var(--colore-primario);
    font-weight: 600;
  }

  .card-info .role {
    margin: 0;
    font-family: var(--font-sottotitoli);
    font-size: 0.9rem;
    color: var(--colore-secondario);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.4;
  }

  .card-info p.bio {
    margin: 15px 0 0 0;
    font-family: var(--font-testo);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--colore-primario);
    font-style: italic;
    text-align: center;
  }

  /* Show bio content from data-name attribute on mobile */
  .card[data-name]::after {
    content: attr(data-name);
    display: block;
    font-family: var(--font-testo);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--colore-primario);
    font-style: italic;
    text-align: center;
    padding: 0 20px 20px;
    margin-top: 10px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .about-hero::before {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .hero-left {
    padding: 60px 15px 30px;
  }

  .hero-left h1 {
    font-size: clamp(5rem, 12vw, 6rem);
  }

  .hero-left h1::after {
    width: 80px;
    height: 3px;
  }

  .hero-intro {
    font-size: 1rem;
    margin-top: 30px;
    padding: 0 15px;
  }

  .team-section {
    padding: 40px 15px;
  }

  .team-section::before {
    font-size: 3rem;
    letter-spacing: 5px;
  }

  .team-header {
    gap: 25px;
    margin-bottom: 40px;
  }

  .team-header h2 {
    font-size: clamp(3rem, 10vw, 4rem);
  }

  .team-header h2::after {
    width: 60px;
    height: 3px;
  }

  .team-header .intro {
    font-size: 1rem;
    padding: 0 5px;
  }

  .team-grid {
    gap: 25px;
  }

  .card {
    border-radius: 12px;
  }

  .card img {
    height: 350px;
    object-fit: cover;
    object-position: center;
  }

  .card .card-info {
    padding: 15px;
  }

  .card-info h3 {
    font-size: 1.3rem;
  }

  .card-info .role {
    font-size: 0.85rem;
  }

  .card[data-name]::after {
    font-size: 0.95rem;
    padding: 0 15px 15px;
  }
}

/* Extra small mobile */
@media screen and (max-width: 360px) {
  .hero-left {
    padding: 50px 10px 25px;
  }

  .hero-left h1 {
    font-size: clamp(4rem, 11vw, 5rem);
    letter-spacing: 1px;
  }

  .hero-intro {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .team-section {
    padding: 30px 10px;
  }

  .team-header h2 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }

  .team-header .intro {
    font-size: 0.95rem;
  }

  .card img {
    height: 300px;
    object-fit: cover;
    object-position: center;
  }

  .card .card-info {
    padding: 12px;
  }

  .card-info h3 {
    font-size: 1.2rem;
  }

  .card-info .role {
    font-size: 0.8rem;
  }

  .card[data-name]::after {
    font-size: 0.9rem;
    padding: 0 12px 12px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: initial;
  }

  .card:active {
    opacity: 0.9;
  }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero-left {
    padding: 40px 20px 20px;
  }

  .hero-left h1 {
    font-size: clamp(4rem, 10vw, 5rem);
  }

  .hero-intro {
    margin-top: 25px;
    font-size: 1rem;
  }

  .team-section {
    padding: 40px 20px;
  }

  .team-header h2 {
    font-size: clamp(3rem, 8vw, 4rem);
  }

  .team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .card img {
    height: 180px;
  }
}

/* High DPI displays */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .card {
    box-shadow: 0 4px 15px rgba(15, 30, 48, 0.12);
  }
}

/* Accessibility for mobile */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .card {
    transition: none;
  }

  .card:active {
    transform: none;
    opacity: 1;
  }
}











/* === COMPETENZE - KONWHOW === */
@media screen and (max-width: 768px) {
  .services {
    background: linear-gradient(135deg, rgba(245, 82, 3, 0.02) 0%, rgba(255, 122, 61, 0.02) 100%);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .services::before {
    content: 'KNOW-HOW';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    font-size: 3rem;
    font-family: var(--font-titoli);
    color: rgba(15, 30, 48, 0.03);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
    white-space: nowrap;
  }

  .services-title {
    font-family: var(--font-titoli);
    font-size: clamp(4rem, 11vw, 6rem);
    color: var(--colore-primario);
    margin: 0 0 50px 0;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9;
  }

  .services-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
  }

  .service {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
  }

  .service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
  }

  .service:active {
    transform: scale(0.98);
  }

  .service img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .service-text {
    padding: 25px;
  }

  .service-text h3 {
    font-family: var(--font-titoli);
    font-size: 2.2rem;
    color: var(--colore-primario);
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .service-text ul {
    list-style: none;
    padding: 0;
    font-family: var(--font-testo);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--colore-secondario);
  }

  .service-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
  }

  .service-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f55203;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .service-text strong {
    color: var(--colore-primario);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
  }

  /* TALENT-INFLUENCER SECTION - Mobile */
  .talent-influencer {
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    padding: 60px 20px;
    color: var(--colore-chiaro);
    position: relative;
    overflow: hidden;
  }

  .talent-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-testo);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--colore-chiaro);
    text-align: center;
    padding: 0;
  }

  .text-block p {
    max-width: 100%;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    padding: 0 20px;
  }

  .text-block.left p {
    margin-bottom: 20px;
  }

  .text-block.right p {
    margin-top: 20px;
  }

  .title-vertical {
    font-family: var(--font-titoli);
    font-size: clamp(3rem, 9vw, 5rem);
    line-height: 1.1;
    margin: 0 0 40px 0;
    color: var(--colore-chiaro);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-word;
  }

  .title-vertical::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  @media screen and (max-width: 768px) {
  .text-block.left .title-vertical::after,
  .text-block.right .title-vertical::after,
  .title-vertical::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

  .image-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
  }

  .image-column img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  /* COMMUNITY SECTION - Mobile */
  .community-section {
    background: white;
    padding: 60px 20px 80px;
    position: relative;
  }

  .community-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }

  .community-block {
    width: 100%;
  }

  .community-block img {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
  }

  .community-text {
    margin-top: 20px;
    text-align: center;
  }

  .community-text h3 {
    font-family: var(--font-titoli);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--colore-primario);
    margin: 0 0 15px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .community-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .community-text p {
    font-family: var(--font-testo);
    font-size: 1.1rem;
    color: var(--colore-secondario);
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
  }

  .community-title {
    text-align: center;
    position: relative;
  }

  .community-title h2 {
    font-family: var(--font-titoli);
    font-size: clamp(4rem, 12vw, 6rem);
    color: var(--colore-primario);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
  }

  .community-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  /* UFFICIO STAMPA SECTION - Mobile */
  .ufficio-stampa {
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    color: var(--colore-chiaro);
    padding: 60px 20px;
    border-bottom: 8px solid var(--colore-chiaro);
    position: relative;
    overflow: hidden;
  }

  .stampa-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .stampa-image {
    width: 100%;
    order: 2;
  }

  .stampa-image img {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }

  .stampa-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .stampa-text .title-vertical {
    font-family: var(--font-titoli);
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    margin: 0 0 25px 0;
    color: var(--colore-chiaro);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
    text-align: center;
  }

  .stampa-text .title-vertical::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .stampa-text p {
    font-family: var(--font-testo);
    font-size: 1.1rem;
    max-width: 100%;
    color: var(--colore-chiaro);
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    text-align: center;
  }
}

/* COMPETENZE MOBILE CSS - Responsive Design */

/* Mobile First - Base mobile styles */
@media screen and (max-width: 768px) {

  /* SERVICES SECTION - Mobile */
  .services {
    background: linear-gradient(135deg, rgba(245, 82, 3, 0.02) 0%, rgba(255, 122, 61, 0.02) 100%);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .services::before {
    content: 'KNOW-HOW';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    font-size: 3rem;
    font-family: var(--font-titoli);
    color: rgba(15, 30, 48, 0.03);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
    white-space: nowrap;
  }

  .services-title {
    font-family: var(--font-titoli);
    font-size: clamp(4rem, 11vw, 6rem);
    color: var(--colore-primario);
    margin: 0 0 50px 0;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9;
  }

  .services-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
  }

  .service {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
  }

  .service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
  }

  .service:active {
    transform: scale(0.98);
  }

  .service img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .service-text {
    padding: 25px;
  }

  .service-text h3 {
    font-family: var(--font-titoli);
    font-size: 2.2rem;
    color: var(--colore-primario);
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .service-text ul {
    list-style: none;
    padding: 0;
    font-family: var(--font-testo);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--colore-secondario);
  }

  .service-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
  }

  .service-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f55203;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .service-text strong {
    color: var(--colore-primario);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
  }

  /* TALENT-INFLUENCER SECTION - Mobile */
  .talent-influencer {
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    padding: 60px 20px;
    color: var(--colore-chiaro);
    position: relative;
    overflow: hidden;
  }

  .talent-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-testo);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--colore-chiaro);
    text-align: center;
    padding: 0;
  }

  .text-block p {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .title-vertical {
    font-family: var(--font-titoli);
    font-size: clamp(3rem, 9vw, 5rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--colore-chiaro);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-word;
  }

  .title-vertical::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .image-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
  }

  .image-column img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  /* COMMUNITY SECTION - Mobile */
  .community-section {
    background: white;
    padding: 60px 20px 80px;
    position: relative;
  }

  .community-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }

  .community-block {
    width: 100%;
  }

  .community-block img {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
  }

  .community-text {
    margin-top: 20px;
    text-align: center;
  }

  .community-text h3 {
    font-family: var(--font-titoli);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--colore-primario);
    margin: 0 0 15px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .community-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .community-text p {
    font-family: var(--font-testo);
    font-size: 1.1rem;
    color: var(--colore-secondario);
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
  }

  .community-title {
    text-align: center;
    position: relative;
  }

  .community-title h2 {
    font-family: var(--font-titoli);
    font-size: clamp(4rem, 12vw, 6rem);
    color: var(--colore-primario);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
  }

  .community-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  /* UFFICIO STAMPA SECTION - Mobile */
  .ufficio-stampa {
    background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
    color: var(--colore-chiaro);
    padding: 60px 20px;
    border-bottom: 8px solid var(--colore-chiaro);
    position: relative;
    overflow: hidden;
  }

  .stampa-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .stampa-image {
    width: 100%;
    order: 2;
  }

  .stampa-image img {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }

  .stampa-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .stampa-text .title-vertical {
    font-family: var(--font-titoli);
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    margin: 0 0 25px 0;
    color: var(--colore-chiaro);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
    text-align: center;
  }

  .stampa-text .title-vertical::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  .stampa-text p {
    font-family: var(--font-testo);
    font-size: 1.1rem;
    max-width: 100%;
    color: var(--colore-chiaro);
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    text-align: center;
  }
}










/* PROGETTI */
.project-overlay {
  display: none;
}












/* UGC INFLUENCER */
.ugc-row {
  display: flex;
  flex-direction: column;
}

.ugc-card {
  width: 100%;
}

.ugc-overlay {
  display: none;
}

.ugc-bg {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: none;
}

.ugc-name {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 20px;
  font-size: 1.8rem;
  font-family: var(--font-titoli);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: auto;
  max-width: 100%;
  text-align: center;
}











/* BLOG */
/* BLOG MOBILE CSS - Foglio separato per dispositivi mobili */

/* Mobile First - Base mobile styles */
@media screen and (max-width: 768px) {
  .blog-section {
    background-color: var(--colore-chiaro);
    padding: 2rem 1rem;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
  }

  .blog-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(245, 82, 3, 0.02) 0%, rgba(255, 122, 61, 0.02) 100%);
  }

  /* Mobile titles */
  .blog-section h2 {
    font-family: var(--font-titoli);
    font-size: 2.5rem;
    color: var(--colore-primario);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }

  .blog-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f55203, #ff7a3d);
    border-radius: 2px;
  }

  /* Mobile HR */
  .blog-section hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 82, 3, 0.1) 0%, rgba(255, 122, 61, 0.1) 100%);
    margin: 1.5rem 0 2rem 0;
    width: 100%;
  }

  /* Mobile layout - single column */
  .blog-layout,
  .blog-layout-reverse {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }

  /* Mobile featured post */
  .blog-featured {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(15, 30, 48, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
  }

  .blog-featured:active {
    transform: scale(0.98);
  }

  .blog-featured img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .blog-featured .content {
    padding: 1.5rem;
  }

  .blog-featured .tag {
    display: inline-block;
    font-family: var(--font-sottotitoli);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, #f55203, #ff7a3d);
    padding: 6px 12px;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .blog-featured h3 {
    font-family: var(--font-titoli);
    font-size: 1.8rem;
    color: var(--colore-primario);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 400;
  }

  .blog-featured p {
    font-family: var(--font-testo);
    font-size: 1rem;
    color: var(--colore-secondario);
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .blog-featured .btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
    color: white;
    text-decoration: none;
    font-family: var(--font-sottotitoli);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 12px rgba(245, 82, 3, 0.3);
  }

  .blog-featured .btn:active {
    transform: scale(0.95);
  }

  /* Mobile blog list */
  .blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    counter-reset: blog-counter;
  }

  .blog-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 30, 48, 0.08);
    transition: all 0.3s ease;
    position: relative;
  }

  .blog-card:active {
    transform: scale(0.98);
  }

  .blog-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }

  .blog-card h4 {
    font-family: var(--font-titoli);
    font-size: 1.2rem;
    color: var(--colore-primario);
    margin: 0;
    padding: 1rem 1rem 1.5rem 1rem;
    line-height: 1.4;
    font-weight: 400;
  }

  /* Mobile card numbering */
  .blog-card::before {
    content: counter(blog-counter);
    counter-increment: blog-counter;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 30, 48, 0.8);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: var(--font-sottotitoli);
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .blog-section {
    padding: 1.5rem 0.75rem;
  }

  .blog-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .blog-section h2::after {
    width: 60px;
  }

  .blog-featured {
    border-radius: 12px;
  }

  .blog-featured img {
    height: 180px;
  }

  .blog-featured .content {
    padding: 1.25rem;
  }

  .blog-featured h3 {
    font-size: 1.5rem;
  }

  .blog-featured p {
    font-size: 0.95rem;
  }

  .blog-featured .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .blog-card img {
    height: 120px;
  }

  .blog-card h4 {
    font-size: 1.1rem;
    padding: 0.75rem 0.75rem 1.25rem 0.75rem;
  }

  .blog-card::before {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .blog-layout,
  .blog-layout-reverse {
    gap: 20px;
  }

  .blog-list {
    gap: 15px;
  }
}

/* Extra small mobile */
@media screen and (max-width: 360px) {
  .blog-section {
    padding: 1rem 0.5rem;
  }

  .blog-section h2 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .blog-section h2::after {
    width: 50px;
    height: 2px;
  }

  .blog-featured img {
    height: 160px;
  }

  .blog-featured .content {
    padding: 1rem;
  }

  .blog-featured h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .blog-featured p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .blog-featured .tag {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  .blog-card img {
    height: 100px;
  }

  .blog-card h4 {
    font-size: 1rem;
    padding: 0.6rem 0.6rem 1rem 0.6rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .blog-featured:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: initial;
  }

  .blog-featured:hover img,
  .blog-card:hover img {
    transform: none;
  }

  .blog-featured:hover h4 {
    color: var(--colore-primario);
  }

  /* Add subtle active states for touch */
  .blog-featured:active {
    opacity: 0.9;
  }

  .blog-card:active {
    opacity: 0.9;
  }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .blog-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .blog-card img {
    height: 100px;
  }

  .blog-featured img {
    height: 180px;
  }
}

/* High DPI displays */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .blog-card,
  .blog-featured {
    box-shadow: 0 2px 8px rgba(15, 30, 48, 0.12);
  }
}












/* CONTATTI */
.contact-section {
  padding: 40px 0;
  background: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* Numero decorativo di sfondo */
.contact-section::before {
  content: 'CONTACT';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  font-size: 5rem;
  font-family: 'League Gothic', sans-serif;
  color: rgba(15, 30, 48, 0.03);
  font-weight: bold;
  z-index: 0;
  pointer-events: none;
  letter-spacing: 10px;
  white-space: nowrap;
}

/* Grid container */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Colonna sinistra - Form */
.contact-left {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-sizing: border-box;
}

/* Titolo principale */
.contact-left h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-family: 'League Gothic', sans-serif;
  color: #0f1e30;
  margin: 0;
  text-align: center;
  position: relative;
  word-wrap: break-word;
  hyphens: auto;
}

/* Evidenziatore sul titolo */
.contact-left h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f55203, #ff7a3d);
  border-radius: 2px;
}

/* Social inline modernizzato */
.contact-social-inline {
  background: linear-gradient(135deg, rgba(245, 82, 3, 0.05) 0%, rgba(255, 122, 61, 0.05) 100%);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-left: 3px solid #f55203;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #1a2b3d;
  line-height: 1.5;
  text-align: center;
  word-wrap: break-word;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--colore-primario);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(15, 30, 48, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 20px rgba(245, 82, 3, 0.3);
  background: #f55203;
}

.contact-icons img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.contact-icons a:hover img {
  filter: grayscale(0%) brightness(2);
}

/* Form modernizzato */
.contact-form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Input e textarea styling moderno */
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #0f1e30;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(15, 30, 48, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgb(255, 255, 255);
  border-color: #f55203;
  box-shadow: 0 0 0 4px rgba(245, 82, 3, 0.1);
  transform: translateY(-2px);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Button submit modernizzato */
.contact-form .btn {
  width: 100%;
  max-width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #f55203 0%, #ff7a3d 100%);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 82, 3, 0.3);
  margin-top: 10px;
  box-sizing: border-box;
}

.contact-form .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-form .btn:active {
  transform: scale(0.98);
}

.contact-form .btn:active::before {
  width: 300px;
  height: 300px;
}

/* Colonna destra - Mappa */
.contact-right {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Testo sopra mappa con card style */
.mappa-testo {
  background: linear-gradient(135deg, #0f1e30 0%, #1a2b3d 100%);
  color: white;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mappa-testo::before {
  content: '📍';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.3;
}

.mappa-testo p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
  word-wrap: break-word;
}

/* Container mappa con bordo decorativo */
.contact-right iframe {
  width: 100%;
  max-width: 100%;
  height: 350px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 30px rgba(15, 30, 48, 0.15);
  position: relative;
  box-sizing: border-box;
}

/* Badge "Sede" sulla mappa */
.contact-right {
  position: relative;
}

.contact-right::after {
  content: 'SEDE';
  position: absolute;
  top: -10px;
  right: 30px;
  background: #f55203;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(245, 82, 3, 0.3);
}

/* Animazioni on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-left > *,
.contact-right > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.contact-left h2 { animation-delay: 0.1s; }
.contact-social-inline { animation-delay: 0.2s; }
.contact-form { animation-delay: 0.3s; }
.mappa-testo { animation-delay: 0.4s; }
.contact-right iframe { animation-delay: 0.5s; }

/* Stato di validazione form */
.contact-form input:valid,
.contact-form textarea:valid {
  border-color: rgba(40, 167, 69, 0.3);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 53, 69, 0.3);
}

/* Media query per schermi molto piccoli */
@media screen and (max-width: 440px) {
  .contact-section {
    padding: 20px 0;
  }

  .contact-section::before {
    font-size: 3rem;
    letter-spacing: 5px;
  }

  .contact-left {
    padding: 0 15px;
  }

  .contact-right {
    padding: 0 15px;
  }

  .contact-left h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .contact-icons {
    gap: 15px;
  }

  .contact-icons a {
    width: 40px;
    height: 40px;
  }

  .contact-icons img {
    width: 20px;
    height: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 0.95rem;
  }

  .contact-right iframe {
    height: 300px;
  }

  .mappa-testo {
    padding: 15px;
  }

  .contact-form .btn {
    padding: 16px 24px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 360px) {
  .contact-left {
    padding: 0 10px;
  }

  .contact-right {
    padding: 0 10px;
  }

  .contact-left h2 {
    font-size: 1.6rem;
  }

  .contact-social-inline {
    padding: 15px;
  }

  .contact-text {
    font-size: 0.9rem;
  }
}

/* Loading state per il form */
.contact-form.loading .btn {
  pointer-events: none;
  opacity: 0.7;
}

.contact-form.loading .btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Regola generale per prevenire overflow orizzontale */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}







