@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Poppins:wght@500;600;700&display=swap');
:root{
  --bg:#0b1021;
  --accent:#1D4ED8;
  --accent-2:#3B82F6;
  --text:#e5e7eb;
  --muted:#9ca3af;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Montserrat,sans-serif;color:var(--text);background:var(--bg);}
a{text-decoration:none;color:inherit}
header{position:absolute;top:0;left:0;right:0;background:transparent;z-index:10}
nav{display:flex;align-items:center;justify-content:space-between;padding:20px 5vw;position:relative;}
.brand img{height:32px}
.nav-links{display:flex;gap:16px;align-items:center}
.nav-links a{color:white;opacity:.8;transition:opacity .3s}
.nav-links a:hover{opacity:1}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;font-weight:700;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.hero{position:relative;min-height:50vh;display:flex;align-items:center;padding:0 5vw;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,var(--accent) 0%,transparent 70%);clip-path:polygon(0 0,100% 0,100% 85%,0 100%);z-index:0}
.hero-inner{position:relative;z-index:1;max-width:900px}
.hero-inner h1{font-size:clamp(34px,6.5vw,64px);font-weight:700;font-family:"Poppins",Montserrat,sans-serif;margin:0 0 12px;text-transform:uppercase;opacity:0;transform:translateY(20px);animation:fadeUp 1s forwards;}
.hero-inner p{font-size:clamp(16px,1.6vw,20px);max-width:640px;color:var(--muted)}
section{padding:60px 5vw}
footer{padding:28px 5vw;color:#94a3b8;border-top:1px solid rgba(255,255,255,.1)}
.foot{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge{font-size:12px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.fade-out{opacity:0;transition:opacity .5s}
.fade-in{opacity:1;transition:opacity .5s}
@keyframes fadeUp{to{opacity:1;transform:translateY(0);}}

/* Services grid Nx3 */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(280px, 1fr));
  gap:28px;
}
@media (max-width: 980px){
  .services-grid{grid-template-columns:repeat(2, minmax(240px, 1fr));}
}
@media (max-width: 640px){
  .services-grid{grid-template-columns:1fr;}
}

/* Service card base */
.service{
  position:relative;
  cursor:pointer;
  overflow:hidden;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  min-height:260px;
  padding:36px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.service:hover{
  transform:scale(1.04);
  box-shadow:0 16px 30px rgba(0,0,0,.35);
  background:rgba(255,255,255,.08);
}
.service .icon{width:56px;height:56px;margin-bottom:14px;}
.service .icon svg{width:100%;height:100%;display:block;fill:var(--accent-2)}
.service h3{margin:0;font-weight:800;letter-spacing:.3px}

/* Hover summary (shows on hover/focus, hidden on active) */

.service:hover .service-summary,
.service:focus-within 
/* Expanded state stays inside grid and reveals full detail */
.service 

@media (max-width:980px){
  
}
@media (max-width:640px){
  
}
.service.active  /* hide hover summary when expanded */


/* ===== Balanced hero for homepage ===== */
body.home .hero{
  min-height: clamp(600px, 72vh, 820px);
  padding: 0 5vw 48px;
}
/* Extend the diagonal overlay to avoid a dark 'dead zone' under the hero */
body.home .hero::before{
  background: linear-gradient(135deg, var(--accent) 0%, transparent 78%);
  clip-path: polygon(0 0,100% 0,100% 100%,0 92%);
}
/* Reduce global section spacing so the page doesn't feel stretched when content is short */
section{ padding: 48px 5vw; }
footer{ padding: 24px 5vw; }

.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.hero-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero 
.hero-inner{position:relative;z-index:2;text-align:left;padding:0 5vw;max-width:900px}

.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.hero-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero 
.hero-inner{position:relative;z-index:2;text-align:left;padding:0 5vw;max-width:900px}
/* Animazioni ingresso */
.fade-up{opacity:0;transform:translateY(30px);animation:fadeUpAnim 1s forwards}
.fade-up.delay1{animation-delay:0.4s}
.fade-up.delay2{animation-delay:0.8s}
@keyframes fadeUpAnim{to{opacity:1;transform:translateY(0)}}

/* Hero video servizi */
.hero-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero 
.hero-inner{position:relative;z-index:2;text-align:left;padding:0 5vw;max-width:900px}

/* Navbar trasparente leggibile */
.navbar {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

/* Hero centrato meglio */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

/* Overlay sfumato */
.hero 

/* CTA più grandi con hover effect */
.hero-cta .btn {
  font-size: 1.1em;
  padding: 0.9em 1.6em;
  transition: all 0.3s ease;
}
.hero-cta .btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 12px rgba(0,123,255,0.6);
}

/* Titolo animato cinematografico */
.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeZoomUp 1.2s forwards;
}
@keyframes fadeZoomUp {
  to { opacity:1; transform: translateY(0) scale(1); }
}

/* Footer compatto con link rapidi e social */
footer {
  padding: 20px 40px;
  background-color: #0a0f1c;
  color: #bbb;
  font-size: 0.9em;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 10px;
}
footer .footer-links, footer .footer-social {
  display: flex;
  gap: 20px;
}
footer .footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .footer-links a:hover {
  color: white;
}
footer .footer-social a {
  color: #bbb;
  font-size: 1.2em;
  transition: color 0.3s ease;
  text-decoration: none;
}
footer .footer-social a:hover {
  color: white;
}
footer .copyright {
  text-align: center;
  margin-top: 5px;
  font-size: 0.8em;
}

/* Footer minimo e compatto */
footer {
  padding: 8px 20px;
  background-color: #0a0f1c;
  color: #bbb;
  font-size: 0.8em;
  position: sticky;
  bottom: 0;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
footer .footer-links, footer .footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}
footer .footer-links a, footer .footer-social a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .footer-links a:hover, footer .footer-social a:hover {
  color: white;
}
footer .copyright {
  margin-left: auto;
  font-size: 0.75em;
}

/* Uniformare titoli hero */
.hero-inner h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 72px);
  margin: 0 0 10px 0;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeZoomUp 1.2s forwards;
}

/* Layout per footer auto-adattivo */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

/* Footer minimale */
footer {
  padding: 8px 20px;
  background-color: #0a0f1c;
  color: #bbb;
  font-size: 0.8em;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
footer .footer-links, footer .footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}
footer .footer-links a, footer .footer-social a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .footer-links a:hover, footer .footer-social a:hover {
  color: white;
}
footer .copyright {
  margin-left: auto;
  font-size: 0.75em;
}

/* Hero video full screen */
.hero {
  min-height: 100vh;
}
.hero-video {
  height: 100vh;
}

/* Footer compatto in homepage */
.home-footer {
  background-color: #0a0f1c;
  color: #bbb;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.8em;
}
.home-footer a {
  color: #bbb;
  margin: 0 5px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.home-footer a:hover {
  color: white;
}
.home-footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Forza hero homepage a full screen */
.hero {
  min-height: 100vh;
  height: 100vh;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio storytelling */
.portfolio-storytelling {
  scroll-snap-type: y mandatory;
}
.portfolio-project {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}
.portfolio-project 
.portfolio-project .content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  animation: fadeUp 1.2s ease forwards;
}
.portfolio-project h2 {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 15px;
}
.portfolio-project p {
  font-size: clamp(16px, 2vw, 22px);
}

/* Portfolio cinematic background with Ken Burns effect */
.portfolio-project {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  overflow: hidden;
}

.portfolio-project .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: zoomCinematic 20s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes zoomCinematic {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.portfolio-project 

.portfolio-project .content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1.2s forwards;
  animation-delay: 0.4s;
}

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-project h2 {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 15px;
}
.portfolio-project p {
  font-size: clamp(16px, 2vw, 22px);
}

/* Rendere l'intera card portfolio cliccabile */
.project-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.project-link:hover .content {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.portfolio-project {
  border-radius: 24px;
  margin: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* Modal popup */



@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Modal popup */



@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Modali Portfolio */



@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}


/* Fix: overlay non deve bloccare i click sulle card */


/* Stili di base per i modali (se non presenti) */



@keyframes zoomIn { from {transform: scale(.9); opacity:0;} to {transform: scale(1); opacity:1;} }

/* Fullscreen modali */




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

/* Lightbox style modali */



@keyframes fadeZoom {
  from {opacity:0; transform: scale(0.85);}
  to {opacity:1; transform: scale(1);}
}

/* Lightbox images ridimensionate */


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px;
}

.project-card {
  background: #0a84ff;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.project-card img {
  width: 100%;
  display: block;
  border-bottom: 4px solid #fff;
}
.project-card:hover {
  transform: scale(1.05);
  background: #006edc;
}







.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.slider {
  position: relative;
  max-width: 100%;
  margin: auto;
}
.slide {
  display: none;
}
.slide.active {
  display: block;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: 0.3s;
}
.prev { left: 0; }
.next { right: 0; }
.prev:hover, .next:hover { color: #0a84ff; }

/* === SERVICES: closed vs open sizes === */


.services-grid > .service, 

/* === SERVICES sizing (deterministic) === */


.services-grid > .service, 

/* === SERVICES (final) === */
/* Griglia originale: le card sono piccole di base */
.services-grid > .service{
  grid-column: span 1 !important;
  transform: none !important;
  min-height: 260px !important;
  transition: transform .3s ease, min-height .3s ease, grid-column .3s ease, box-shadow .3s ease;
}

/* Card attiva: si espande fluidamente */


/* Contenuto descrizione: appare subito (niente scroll animato) */



/* Assicura che chiudendo torni piccolo come le altre */

/* === SERVICES (definitivo) === */
/* Griglia originale: card piccole di base */
.services-grid > .service {
  grid-column: span 1;
  transform: none;
  min-height: 260px;
  transition: transform .3s ease, min-height .3s ease, grid-column .3s ease, box-shadow .3s ease;
}

/* Card attiva: si espande fluidamente e mostra la descrizione */
.services-grid > .service.active {
  grid-column: span 2;
  min-height: 360px;
  transform: scale(1.06);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* Descrizione: appare subito quando attiva */
.service-detail {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.service.active .service-detail {
  opacity: 1;
  max-height: 1000px; /* niente animazione di altezza visibile */
}

/* Garanzia: chiusa = uguale alle altre (niente ombre, niente scale) */
.services-grid > .service:not(.active) {
  box-shadow: none;
  transform: none;
  grid-column: span 1;
  min-height: 260px;
}


/* Failsafe: hide large portfolio grids below sliders */
.portfolio section:not(:has(.swiper, .slick, .splide, .glide, .carousel)),
.portfolio div:not(:has(.swiper, .slick, .splide, .glide, .carousel)) {
  /* only hide if it looks grid-like */
}
.portfolio .grid, .portfolio .masonry, .portfolio .work-grid, .portfolio .portfolio-grid, .portfolio .gallery {
  display: none !important;
}


/* === 2P Drone — Portfolio bg + arrows fix === */
:root {
  --section-bg-2p: var(--bg);
}
/* Uniforma lo sfondo del portfolio al resto del sito */
.portfolio, .portfolio .slider-wrapper-2p, .portfolio .slider-track-2p {
  background-color: var(--section-bg-2p) !important;
}

/* Padding ai lati della traccia per non far sovrapporre le frecce alle card */
.slider-track-2p {
  padding-left: 56px;
  padding-right: 56px;
}

/* Wrapper relativo e frecce centrate verticalmente e specchiate */
.slider-wrapper-2p {
  position: relative;
}
.slider-btn-2p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.slider-prev-2p { left: 8px; }
.slider-next-2p { right: 8px; }

/* Disabilita click-through quando non serve e nasconde frecce se non c'è overflow */
.slider-wrapper-2p.no-overflow .slider-btn-2p {
  display: none;
}


/* 2P Drone - hide residual big overlay headings inside slider cards */
.slider-track-2p .card h1, 
.slider-track-2p .card h2, 
.slider-track-2p .card h3 {
  display: none !important;
}


/* base: hide toggle and mobile menu on desktop */
.nav-toggle{
  display:none;
}
.mobile-menu{
  display:none;
}


/* mobile menu */
@media (max-width: 768px){
  .nav-toggle{
    display:inline-flex;
    background:none;
    border:none;
    cursor:pointer;
  }
  nav .nav-links{
    display:none;
  }
  nav .mobile-menu{
    display:block;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#050505;
    transform-origin:top;
    transform:scaleY(0);
    max-height:0;
    opacity:0;
    pointer-events:none;
    transition:transform .35s ease, opacity .35s ease, max-height .35s ease;
  }
  nav .mobile-menu.open{
    transform:scaleY(1);
    max-height:500px;
    opacity:1;
    pointer-events:auto;
  }
  nav .mobile-links{
    display:flex;
    flex-direction:column;
    gap:18px;
    padding:18px 5vw 24px;
    text-align:center;
  }
}

/* =======================
   SEZIONE ULTIME NOVITÀ
   ======================= */
.news-section{
  padding:60px 5vw 120px;
  background:radial-gradient(circle at top,#111827 0,#020617 55%);
}
.news-inner{
  max-width:1100px;
  margin:0 auto;
}
.news-kicker{
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:0.78rem;
  color:#9ca3af;
  margin-bottom:8px;
}
.news-title{
  font-family:"Poppins",Montserrat,sans-serif;
  font-size:clamp(26px,3vw,34px);
  margin:0 0 8px;
}
.news-intro{
  max-width:640px;
  color:#9ca3af;
  margin:0 0 28px;
}
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.news-card{
  position:relative;
  min-height:220px;
  border-radius:18px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  isolation:isolate;
}
.news-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(15,23,42,0.1),rgba(15,23,42,0.9));
  z-index:0;
}
.news-card-overlay{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px 18px 18px;
}
.news-tag{
  display:inline-block;
  align-self:flex-start;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  background:rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,184,0.7);
  color:#e5e7eb;
  margin-bottom:10px;
}
.news-card h3{
  margin:0 0 6px;
  font-size:1.02rem;
}
.news-card p{
  margin:0 0 10px;
  font-size:0.9rem;
  color:#cbd5f5;
}
.news-link{
  font-size:0.85rem;
  font-weight:600;
  color:#60a5fa;
}
.news-link:hover{
  text-decoration:underline;
}

/* Immagini di sfondo per le card (si possono cambiare) */
.news-card--cantiere{
  background-image:url("../img/cantiere.jpg");
}
.news-card--evento{
  background-image:url("../img/turismo.jpg");
}
.news-card--ispezione{
  background-image:url("../img/ispezione.jpg");
}


.news-grid--single{
  max-width:1100px;
  margin:32px auto 0;
}
.news-card--live::before{
  background:linear-gradient(180deg,rgba(15,23,42,0.05),rgba(15,23,42,0.92));
}
.news-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color:#f97316;
}
.news-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#f97316;
  box-shadow:0 0 0 0 rgba(249,115,22,0.7);
  animation: pulse-dot 1.6s infinite;
}
.news-note{
  font-size:0.85rem;
  color:#cbd5f5;
  margin-top:6px;
}
@keyframes pulse-dot{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(249,115,22,0.7);}
  70%{transform:scale(1.3);box-shadow:0 0 0 6px rgba(249,115,22,0);}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(249,115,22,0);}
}


/* Responsive */
@media (max-width:900px){
  .news-grid{
    grid-template-columns:1fr;
  }

/* Mobile fix: avoid horizontal clipping on left/right cards */
.duo-left .duo-card,
.duo-right .duo-card{
  margin-left: auto !important;
  margin-right: auto !important;
}
}




/* Hero subtitle – simple high contrast */
.hero-sub{
  color:#ffffff !important;
  font-weight:400;
  font-size:clamp(17px,1.7vw,21px);
  text-shadow:0 0 14px rgba(0,0,0,0.95);
}


/* Scroll mouse indicator */
.scroll-flow{
  margin:12px auto 0;
  width:26px;
  height:40px;
  border-radius:18px;
  border:2px solid rgba(255,255,255,0.9);
  box-sizing:border-box;
  position:relative;
}
.scroll-flow::before{
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  width:3px;
  height:8px;
  margin-left:-1.5px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  animation: wheelScroll 1.4s infinite ease-out;
}
@keyframes wheelScroll{
  0%{opacity:1; transform:translateY(0);}
  70%{opacity:0; transform:translateY(10px);}
  100%{opacity:0; transform:translateY(0);}
}


/* Clean scroll hint: no opaque background / glow */
.scroll-hint{
  background: transparent !important;
  box-shadow: none !important;
}
.scroll-hint .wind-stream{
  display:none !important;
}


/* =========================
   TRUST BADGE (ENAC / EASA)
   ========================= */
.hero-trust{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 14px rgba(0,0,0,0.9);
}
.hero-trust-badge{
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.12);
  backdrop-filter: blur(2px);
  overflow: hidden;
}
.hero-trust-badge svg{
  width: 60px;
  height: 60px;
  display: block;
  color: rgba(255,255,255,0.95);
}

.hero-trust-badge .enac-logo{
  width: 54px;
  height:  54px;
  display: block;
  object-fit: contain;
}
.hero-trust-badge .bnb-logo{
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
}

.hero-trust-text{
  display: grid;
  gap: 2px;
  text-align: left;
}
.hero-trust-title{
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 14px;
}
.hero-trust-sub{
  font-weight: 400;
  letter-spacing: 0.2px;
  font-size: 13px;
  opacity: 0.95;
}
.hero-trust-sub span{
  font-weight: 700;
}
@media (max-width: 600px){
  .hero-trust{ margin-top: 14px; gap: 10px; }
  .hero-trust-badge{ width: 60px; height: 60px; }
  .hero-trust-badge svg{ width: 54px; height: 54px; }
  .hero-trust-text{ text-align: center; }
  .hero-trust-badge .enac-logo{ width: 44px; height: 44px; }
}


/* =========================
   ENAC BADGE – SOLO MOBILE
   (sotto il video, su fascia scura)
   ========================= */
.enac-section-mobile{ display:none; }

@media (hover: none) and (pointer: coarse) and (max-width: 1024px){
  /* Nasconde il badge dentro la hero (solo mobile) */
  .hero .hero-trust{ display:none; }

  /* Mostra la fascia dedicata sotto il video */
  .enac-section-mobile{
    display:block;
    background:#0b0f17;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 22px 16px 18px;
  }

  .enac-section-mobile .hero-trust{
    display:flex;
    margin-top:0;
    justify-content:center;
    text-shadow:none;
  }
  .enac-section-mobile .hero-trust-text{ text-align:center; }
  .hero-trust-badge .enac-logo{ width: 46px; height: 46px; }
}



/* === Chi siamo: hero con foto + testi blu brand === */
.hero.hero-chi-siamo{
  /* Lo sfondo viene gestito da ::before per poter animare il Ken Burns */
  background: none;
}
/* Usa ::before come layer immagine (sostituisce il gradiente diagonale standard) */
.hero.hero-chi-siamo::before{
  background: url('chi-siamo-bg.png') center/cover no-repeat;
  clip-path: none;
  /* Ken Burns: micro zoom-out elegante */
  transform: scale(1.06);
  transform-origin: center;
  transition: transform 1200ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.hero.hero-chi-siamo .hero-inner h1{
  color: #2B4F88;
  text-shadow: none;
}
.hero.hero-chi-siamo .scroll-hint-chi{
  margin: 25px auto;
  display: inline-block;
  padding: 10px 25px;
  color: #2B4F88;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  text-align: center;
  text-shadow: none;
}
.hero.hero-chi-siamo .scroll-flow{
  border-color: rgba(43,79,136,0.9);
}
.hero.hero-chi-siamo .scroll-flow::before{
  background: rgba(43,79,136,0.9);
}

/* === Chi siamo: Ken Burns (zoom-out) attivato quando la hero entra in viewport === */
.hero.hero-chi-siamo.visible::before{
  transform: scale(1);
}


/* === Chi siamo: Duo scenografico (Giorgio & Ethel) — card in colonna + figure esterne === */
.duo-stage{
  /* Più respiro sopra per evitare che le figure \"invadano\" la hero/foto */
  /* più spazio sotto per non tagliare i piedi con overflow:hidden */
  /* Cuscino verticale più generoso: le figure restano grandi ma non vengono tagliate in alto */
  /* Spazio verticale calibrato per mostrare le figure complete (soprattutto Ethel) */
  /* Top piu contenuto (non invade la hero) + bottom piu generoso (niente tagli in basso) */
  /* Bottom molto più generoso: evita qualsiasi taglio (soprattutto Ethel) */
  padding: clamp(130px, 12vh, 200px) 18px clamp(220px, 24vh, 360px);
  position: relative;
  /* Impedisce che le figure "invadano" la hero/foto: tutto resta nella fascia blu */
  overflow: hidden;
}
.duo-wrap{
  max-width: 1180px;
  margin: 0 auto;
}
.duo-grid{
  display: flex;
  flex-direction: column;    /* descrizioni una sotto l'altra */
  align-items: center;
  gap: 34px;
}

/* Ogni membro: card in colonna; figura “fuori” ai lati */
.duo-member{
  position: relative;
  width: min(760px, 100%);
  padding: 22px 0;
  overflow: visible;

  opacity: 0;
  transform: translateY(18px);
  /* Entrata più "calma" e cinematografica */
  transition: opacity 1900ms cubic-bezier(.16,1,.3,1), transform 1900ms cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.duo-stage.visible .duo-member{
  opacity: 1;
  transform: translateY(0);
}
.duo-stage.visible .duo-left{ transition-delay: 0ms; }
.duo-stage.visible .duo-right{ transition-delay: 240ms; }

.duo-card{
  position: relative;
  z-index: 2;
  background: rgba(13,17,23,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px 22px;
  backdrop-filter: blur(6px);
  max-width: 720px;
  margin: 0 auto;
}

.duo-left .duo-card{ margin-left: clamp(60px, 6vw, 140px); }
.duo-right .duo-card{ margin-right: clamp(60px, 6vw, 140px); }
.duo-card h2{
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

/* Certificazioni (badge) — Chi siamo */
.duo-card .certifications{
  margin: 14px 0 0;
}
.duo-card .cert-badges{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.duo-card .cert-badge{
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.duo-card .cert-badge img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: filter 0.18s ease;
}
/* Effetto "ghiaccio": riflesso + glow freddo */
.duo-card .cert-badge::after{
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(180, 230, 255, 0.38) 35%,
    rgba(255,255,255,0) 70%);
  transform: translateX(-65%) rotate(10deg);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.55s ease;
}
.duo-card .cert-badge:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.32),
    0 0 0 1px rgba(180, 230, 255, 0.22),
    0 0 18px rgba(180, 230, 255, 0.18);
}
.duo-card .cert-badge:hover img{
  filter: brightness(1.07) contrast(1.05) saturate(1.04);
}
.duo-card .cert-badge:hover::after{
  opacity: 1;
  transform: translateX(65%) rotate(10deg);
}
.duo-card .cert-caption{
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.74);
  letter-spacing: 0.2px;
}

@media (max-width: 900px){
  .duo-card .cert-badge{ width: 52px; height: 52px; border-radius: 11px; }
  .duo-card .cert-caption{ font-size: 12px; }
}

@media (prefers-reduced-motion: reduce){
  .duo-card .cert-badge,
  .duo-card .cert-badge::after,
  .duo-card .cert-badge img{
    transition: none !important;
  }
}
.duo-card p{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
}
.duo-card ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.85);
}
.duo-card li{ margin: 6px 0; }

/* Figure: più grandi, “esterne”, scenografiche */
.duo-figure{
  position: absolute;
  z-index: 0;

  /* Foto reali: allineamento con la card */
  top: 50%;
  bottom: auto;

  /* Dimensioni portrait moderne */
  width: clamp(220px, 20vw, 320px);
  height: clamp(320px, 46vh, 520px);

  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  opacity: 0;
  transition: opacity 2400ms cubic-bezier(.16,1,.3,1), transform 2400ms cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.duo-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
/* Un filo più "cinema" (ombra morbida) */
  filter: drop-shadow(0 18px 44px rgba(0,0,0,0.58));
  transform: translateY(22px) scale(1.07);
  transition: transform 2600ms cubic-bezier(.16,1,.3,1);
}
.duo-figure img.mirror{ transform: scaleX(-1) translateY(22px) scale(1.07); }

.duo-stage.visible .duo-figure img{
  transform: translateY(0) scale(1);
}
.duo-stage.visible .duo-figure img.mirror{
  transform: scaleX(-1) translateY(0) scale(1);
}

/* Giorgio: esce a sinistra */
.duo-left .duo-figure{
  left: calc(-1 * clamp(90px, 7vw, 180px));
  right: auto;
  top: 50%;
  transform: translate3d(-80px,-50%,0) scale(1.02);
}
/* Ethel: esce a destra e “sta sotto” */
.duo-right .duo-figure{
  right: calc(-1 * clamp(90px, 7vw, 180px));
  left: auto;
  top: 60%; /* un filo più "sotto" */
  transform: translate3d(80px,-50%,0) scale(1.02);
}

.duo-stage.visible .duo-left .duo-figure{
  opacity: 1;
  transform: translate3d(0,-50%,0) scale(1);
  transition-delay: 240ms;
}
.duo-stage.visible .duo-right .duo-figure{
  opacity: 1;
  transform: translate3d(0,-50%,0) scale(1);
  transition-delay: 980ms;
}

/* Schermi medi: riduci un filo offset e dimensioni figure */
@media (max-width: 1200px){
  .duo-member{ width: min(720px, 100%); }
  .duo-figure{
    width: clamp(240px, 26vw, 440px);
    height: clamp(460px, 58vh, 760px);
  }
  .duo-left .duo-figure{
    left: calc(-1 * clamp(360px, 26vw, 720px));
  }
  .duo-right .duo-figure{
    right: calc(-1 * clamp(360px, 26vw, 720px));
    bottom: -260px;
  }
}

/* Mobile: torna in colonna classica (figura sopra, card sotto) */
@media (max-width: 900px){
  .duo-stage{ padding: 60px 16px 30px; }

  .duo-member{
    padding: 0;
    transform: translateY(18px);
  }

  .duo-figure{
    position: relative;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: min(360px, 92vw);
    height: 420px;
    margin: 0 auto 14px;
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
  .duo-figure img{ width: 100%; height: 100%; object-fit: cover; }

  .duo-card{
    width: 100%;
    max-width: 560px;
  }


/* Mobile fix: avoid horizontal clipping on left/right cards */
.duo-left .duo-card,
.duo-right .duo-card{
  margin-left: auto !important;
  margin-right: auto !important;
}
}


/* Contact form inline status */
.form-status{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,40,.35);
  color: rgba(255,255,255,.92);
  display: none;
}
.form-status.is-ok{ border-color: rgba(60, 214, 152, .35); }
.form-status.is-err{ border-color: rgba(255, 92, 92, .35); }
.form-status.is-warn{ border-color: rgba(255, 196, 0, .35); }
.btn.is-loading{ opacity: .85; }

/* Contact reveal helpers */
.card{ opacity: 1; transform: none; }
.card.motion-in{ opacity: 1; transform: none; }
.field-anim{ opacity: 1; transform: none; }
/* YouTube icon (portfolio social link) */
.social-icon svg{ width: 22px; height: 22px; fill: currentColor; display:block; }


/* === FIX: Footer socials bar (sempre visibile su tutte le pagine) === */
:root{ --footer-h: 74px; }
body{ padding-bottom: 74px !important; }

.site-footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #0d1117;
  color: #fff;
  z-index: 9999;
  padding: 10px 16px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: left;
  overflow: visible; /* evita tagli del testo */
}
.site-footer .footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .footer-socials{
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.site-footer .footer-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-footer .footer-social svg{
  width: 22px;
  height: 22px;
  fill: #fff;
  opacity: .95;
  transition: transform .18s ease, fill .18s ease, opacity .18s ease;
}
.site-footer .footer-social:hover svg{
  fill: #2196f3;
  transform: translateY(-2px);
  opacity: 1;
}
.site-footer .footer-links{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

/* Right group (email + ticker) */
.site-footer .footer-right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.site-footer .footer-email{ color:#fff; text-decoration:none; opacity:.95; }
.site-footer .footer-email:hover{ color:#2196f3; opacity:1; }
.site-footer .footer-links a{
  color: #fff;
  text-decoration: none;
  opacity: .95;
}
.site-footer .footer-links a:hover{
  color: #2196f3;
  opacity: 1;
}
.site-footer .footer-links .sep{ opacity: .45; }

/* === Footer ticker (SOLO PC) === */
.site-footer .footer-ticker{ display: none; }

@media (hover: hover) and (pointer: fine){
  .site-footer{ padding: 10px 16px; }
  .site-footer .footer-inner{ justify-content: space-between; flex-wrap: nowrap; gap: 12px; }

  /* Evita il wrap: una riga soltanto */
  .site-footer .footer-socials{ flex: 0 0 auto; }
  /* Un filo di padding evita che il primo carattere (es. "2025") venga tagliato */
  .site-footer .footer-links{
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }
  .site-footer.ticker-ready .footer-ticker{
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-footer .footer-right{ flex: 0 0 auto; }

  /* Footer links: tutto a destra, una riga */
  .site-footer .footer-links{ justify-content: flex-start; flex-wrap: nowrap; gap: 10px; }

  /* Ticker a destra, dopo l’e-mail */
  .site-footer .footer-ticker{
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity .35s ease, transform .35s ease;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
    max-width: 420px;
    min-width: 0;
  }
  .site-footer .ticker-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    background: rgba(33,150,243,.18);
    border: 1px solid rgba(33,150,243,.35);
  }
  .site-footer .ticker-viewport{
    position: relative;
    overflow: hidden;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.08);
    width: clamp(220px, 26vw, 360px);
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .site-footer .ticker-track{
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    will-change: transform;
    white-space: nowrap;
    animation: footerTickerMarquee var(--ticker-duration, 45s) linear infinite;
    animation-delay: var(--ticker-delay, 0s);
  }
  .site-footer .ticker-content{ display: inline-block; }
  .site-footer .ticker-sr{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  .site-footer .ticker-viewport:hover .ticker-track{ animation-play-state: paused; }
}

@keyframes footerTickerMarquee{
  from{ transform: translate3d(0,0,0); }
  to{ transform: translate3d(-50%,0,0); }
}

/* NAV: bottone Contatti più rotondo (pill) */
nav .nav-links a.btn{
  border-radius: 999px !important;
  padding: 11px 20px !important;
  line-height: 1 !important;
}
/* underline per tutti i link, MA non per il bottone Contatti */
nav .nav-links a.btn::after,
nav .mobile-links a.btn::after{
  content: none !important;
  display: none !important;
}
nav .nav-links a.btn{ text-decoration: none !important; padding-bottom: 0 !important; }

@media (max-width: 640px){
  :root{ --footer-h: 88px; }
  body{ padding-bottom: 88px !important; }
  .site-footer{ font-size: 12px; }
  .site-footer .footer-inner{ justify-content: space-between; }
  .site-footer .footer-links{ gap: 6px; }
}

/* === MOBILE MENU: tutti i pulsanti uguali, Contatti blu e NON più piccolo ===
   Applichiamo lo stile quando esiste il menu hamburger (.mobile-menu), così funziona su tutte le larghezze
   dove il menu mobile viene mostrato (non solo <= 640px).
*/
.mobile-menu .mobile-links a{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 18px 16px;
  border-radius: 18px;                 /* quadrato morbido come gli altri */
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

/* Contatti: STESSE DIMENSIONI, ma blu */
.mobile-menu .mobile-links a.btn{
  background: #1e62ff;
  border-color: rgba(30,98,255,.95);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

/* Niente underline/after nel menu mobile */
.mobile-menu .mobile-links a::after,
.mobile-menu .mobile-links a.btn::after{
  content: none !important;
  display: none !important;
}


/* Safety override: mobile btn non pill */
.mobile-menu .mobile-links a.btn{border-radius:18px !important;}

/* =============================
   Hero reveal – line-by-line (Home)
   ============================= */

html.js body.home .hero .hero-title{
  margin-bottom: 14px;
}

/* Title: each line wrapped by JS */
html.js body.home .hero .hero-title .reveal-line{
  display: block;
  overflow: hidden;
}
html.js body.home .hero .hero-title .reveal-line-inner{
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}
html.js body.home .hero.hero-reveal .hero-title .reveal-line-inner{
  animation: heroLineIn 1.15s cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}

/* Subtitle / CTA / trust */
html.js body.home .hero .hero-reveal-item{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}
html.js body.home .hero.hero-reveal .hero-reveal-item{
  animation: heroItemIn 1.0s cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay: var(--d, 600ms);
}

@keyframes heroLineIn{
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroItemIn{
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  html.js body.home .hero .hero-title .reveal-line-inner,
  html.js body.home .hero .hero-reveal-item{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* GDMI Taranto – verticale dentro frame */


/* badges (se mancanti) */
.cinema-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.cinema-badges .badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .92rem;
}

}

}

/* Contatti – reveal SEQUENZIALE (uno alla volta, niente blur) */
html.js #contactForm .field-anim{
  opacity: 0;
  transform: translateY(16px);
}

html.js #contactForm .field-anim{
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

html.js #contactForm .field-anim.is-on{
  opacity: 1;
  transform: translateY(0);
}

/* Piccolo “ordine” interno: prima label, poi campo (stile Villa Yucca) */
html.js #contactForm .field-anim label{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
  transition-delay: 0ms;
}

html.js #contactForm .field-anim.is-on label{
  opacity: 1;
  transform: translateY(0);
}

html.js #contactForm .field-anim input,
html.js #contactForm .field-anim textarea,
html.js #contactForm .field-anim select,
html.js #contactForm .field-anim .privacy,
html.js #contactForm .field-anim button{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
  transition-delay: 90ms; /* dopo la label */
}

html.js #contactForm .field-anim.is-on input,
html.js #contactForm .field-anim.is-on textarea,
html.js #contactForm .field-anim.is-on select,
html.js #contactForm .field-anim.is-on .privacy,
html.js #contactForm .field-anim.is-on button{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  html.js #contactForm .field-anim,
  html.js #contactForm .field-anim label,
  html.js #contactForm .field-anim input,
  html.js #contactForm .field-anim textarea,
  html.js #contactForm .field-anim select,
  html.js #contactForm .field-anim .privacy,
  html.js #contactForm .field-anim button{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile social dock (telefono) */
.social-dock{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none; /* desktop off */
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.social-dock__inner{
  width: fit-content;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  pointer-events: auto;
}

.dock-social{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease;
}

.dock-social svg{
  width: 18px;
  height: 18px;
  opacity: .92;
}

.dock-social:active{
  transform: scale(.96);
}

@media (max-width: 900px){
  .social-dock{ display: block; }

  /* evita che la dock copra gli ultimi contenuti */
  body{ padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Hero social row (solo mobile) */
.hero-social-row{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.hero-social-row__label{
  font-size: .92rem;
  opacity: .85;
  letter-spacing: .02em;
}

.hero-social-row__icons{
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-social{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.hero-social svg{ width: 18px; height: 18px; opacity: .92; }

@media (max-width: 900px){
  .hero-social-row{ display: flex; }
}

/* Social icons: force white on mobile components */
.hero-social,
.dock-social{
  color: #fff;
}

.hero-social svg,
.dock-social svg{
  fill: currentColor;
  stroke: currentColor;
}

.hero-social svg * ,
.dock-social svg *{
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Social dock – Contatti: combacia con le icone in pagina (solo mobile) */
@media (max-width: 900px){
  .social-dock{
    transition: transform .22s ease, opacity .22s ease;
  }

  .social-dock.is-docking{
    transform: translateY(calc(-1 * var(--dock-shift, 120px)));
  }

  /* nascondi la riga icone “dietro” quando la dock si sovrappone (mantiene lo spazio) */
  .socials.is-replaced{
    visibility: hidden;
  }

  /* centra WhatsApp rispetto alla riga icone */
  .card .cta-wa{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
  }
  .card p:has(.cta-wa){
    text-align: center;
  }

  /* assicurati che la riga social del contatto sia centrata */
  .card .socials{
    justify-content: center;
  }
}

/* ENAC / EASA badge – posizionamento professionale + cliccabile */
.hero-trust-link{
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.hero-trust--desktop{
  margin-top: 16px;
}

.hero-trust--desktop .hero-trust{
  justify-content: flex-start; /* allineato al blocco testo */
}

/* piccolo “glass” dietro al testo per leggibilità senza sembrare appiccicato */
.hero-trust--desktop .hero-trust-text{
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-trust-link:focus-visible{
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 4px;
  border-radius: 16px;
}

@media (hover:hover){
  .hero-trust-link:hover .hero-trust-text{
    background: rgba(0,0,0,.28);
    border-color: rgba(255,255,255,.16);
  }
}

/* Mobile: usa la sezione dedicata, nascondi quella desktop */
@media (max-width: 900px){
  .hero-trust--desktop{ display: none; }
  .hero-trust--mobile{ display: inline-block; }
}
@media (min-width: 901px){
  .enac-section-mobile{ display: none !important; }
  .hero-trust--desktop{ display: inline-block; }
}

.hero-inner{
    padding: 0;           /* evita doppio padding */
    max-width: 900px;
  }
}


/* Se lo schermo è molto grande, riduci lo shift per non esagerare */
@media (min-width: 1400px){
  body.home .hero-inner{
    transform: translateX(-2.5vw);
  }
}

}


/* Su schermi molto grandi riduci lo shift */
@media (min-width: 1600px){
  body.home .hero-inner{
    transform: translateX(-1.2vw);
  }
}

/* HERO – Index desktop: allineata alla sezione "Cosa stiamo facendo..." (solo HOME, solo PC) */
@media (min-width: 901px){
  body.home .hero{
    justify-content: center;   /* centra il contenitore, non il testo */
    padding-left: 5vw;         /* uguale a .news-section */
    padding-right: 5vw;
  }

  body.home .hero-inner{
    width: 100%;
    max-width: 1100px;         /* uguale a .news-inner */
    margin: 0 auto;
    padding: 0;                /* evita padding doppi */
    text-align: left;          /* coerente con i testi sotto */
  }
}

/* Social dock – bianco, WhatsApp centrato e leggermente più grande (solo smartphone) */
@media (max-width: 900px){
  .social-dock .dock-social{
    color: #fff;
  }
  .social-dock .dock-social svg{
    width: 28px;
    height: 28px;
  }
  .social-dock .dock-social svg path,
  .social-dock .dock-social svg circle,
  .social-dock .dock-social svg rect{
    fill: currentColor;
  }

  .social-dock .dock-social--wa svg{
    width: 32px;
    height: 32px;
  }

/* WhatsApp pulse animation */
.dock-social--wa{
  position: relative;
}
.dock-social--wa::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.65);
  opacity:0;
  animation: waRing 1.8s infinite ease-out;
  pointer-events:none;
}
.dock-social--wa:hover{
  transform: scale(1.08);
}
@keyframes waRing{
  0%{ transform: scale(.85); opacity:.75; }
  70%{ transform: scale(1.35); opacity:0; }
  100%{ transform: scale(1.35); opacity:0; }
}


}

@media (hover: hover) and (pointer: fine){
  .site-footer.ticker-ready .footer-ticker{
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}


/* ================================
   INDEX HERO SAFE AREA FIX
   Keeps hero headline visible below fixed/blurred top bar
   ================================ */

/* Push hero content down so it never sits under the fixed header */
.hero{
  padding-top: clamp(90px, 10vh, 150px);
}

/* Only on shorter laptop screens, slightly tighten the headline (not "too small") */
@media (max-height: 760px){
  .hero-inner h1{
    font-size: clamp(32px, 6.2vw, 60px);
    line-height: 1.03;
  }
}


/* B&B Abruzzo inline badge (trust block) */
.hero-trust-sub--bnb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}
.bnb-logo-inline{
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:50%;
  background:#fff;
  object-fit:contain;
  box-shadow:0 2px 6px rgba(0,0,0,0.18);
}
.hero-trust-sub--bnb span{
  opacity:0.95;
}




/* stacked trust badges (aligned + consistent sizing) */
.hero-trust{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hero-trust-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.hero-trust-badge{
  flex:0 0 auto;
}

.trust-badge-circle{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
}

.trust-badge-img{
  width:84%;
  height:84%;
  object-fit:contain;
  display:block;
}

/* B&B logo tends to have more empty margins: let it fill slightly more */
.trust-badge-img--bnb{
  width:90%;
  height:90%;
}

.hero-trust-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.hero-trust-title{
  line-height:1.1;
}

.hero-trust-sub{
  line-height:1.2;
}


/* side-by-side trust layout */
.hero-trust-side{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}

.hero-trust-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.hero-trust-row--bnb{
  opacity:0.95;
}

.trust-badge-circle{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.trust-badge-img{
  width:84%;
  height:84%;
  object-fit:contain;
}

.trust-badge-img--bnb{
  width:90%;
  height:90%;
}

/* mobile: stack gracefully */
@media (max-width: 520px){
  .hero-trust-side{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}


/* Hero subtitle stronger */
.hero-sub--strong,
.hero-sub.hero-reveal-item{
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  max-width: 52ch;
}


/* B&B modal trigger */
.bnb-trigger{
  display:flex;
  align-items:center;
  gap:12px;
  background:transparent;
  border:0;
  padding:0;
  text-align:left;
  cursor:pointer;
  color:inherit;
}
.bnb-trigger:focus-visible{
  outline:2px solid rgba(255,255,255,0.65);
  outline-offset:6px;
  border-radius:10px;
}

/* Modal */
.bnb-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.bnb-modal.is-open{
  display:block;
}
.bnb-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  opacity:0;
  transition:opacity 220ms ease;
}
.bnb-modal__panel{
  position:relative;
  width:min(520px, calc(100% - 32px));
  margin:0 auto;
  top:50%;
  transform:translateY(-48%) scale(0.98);
  background:rgba(20,24,32,0.92);
  backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,0.45);
  opacity:0;
  transition:opacity 220ms ease, transform 220ms ease;
}
.bnb-modal__content{
  padding:22px 22px 20px;
}
.bnb-modal__logo{
  width:96px;
  height:96px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
}
.bnb-modal__logo img{
  width:86%;
  height:86%;
  object-fit:contain;
}
.bnb-modal__title{
  margin:0 0 10px;
  font-size:22px;
  text-align:center;
  color:#fff;
}
.bnb-modal__text{
  margin:0;
  font-size:15.5px;
  line-height:1.45;
  color:rgba(255,255,255,0.86);
  text-align:center;
}
.bnb-modal__close{
  position:absolute;
  top:10px;
  right:12px;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.bnb-modal__close:hover{
  background:rgba(255,255,255,0.10);
}

/* Open state animations */
.bnb-modal.is-open .bnb-modal__backdrop{
  opacity:1;
}
.bnb-modal.is-open .bnb-modal__panel{
  opacity:1;
  transform:translateY(-50%) scale(1);
}

/* Trust wrap to separate ENAC link and B&B trigger */
.hero-trust-wrap{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.hero-trust--bnb .bnb-trigger{
  opacity:0.98;
}
.hero-trust--bnb .bnb-trigger:hover{
  opacity:1;
}
@media (max-width: 520px){
  .hero-trust-wrap{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
}


/* Trust badges in hero (ENAC + B&B) */
.hero-trust-wrap{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}

.hero-trust-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.hero-trust-item--link{
  text-decoration:none;
}

.hero-trust-item--link:hover .hero-trust-title,
.hero-trust-item--button:hover .hero-trust-title{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.hero-trust-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.hero-trust-title{
  font-size:14px;
  font-weight:700;
  color:#ffffff;
  line-height:1.15;
}

.hero-trust-sub{
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,0.85);
  line-height:1.2;
}

/* badges */
.trust-badge-circle{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.trust-badge-img{
  width:84%;
  height:84%;
  object-fit:contain;
  display:block;
}
.trust-badge-img--bnb{
  width:90%;
  height:90%;
}

/* focus */
.hero-trust-item:focus-visible{
  outline:2px solid rgba(255,255,255,0.7);
  outline-offset:6px;
  border-radius:12px;
}

/* mobile */
@media (max-width: 520px){
  .hero-trust-wrap{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
}


/* spacing fix: move trust badges lower from CTA buttons */
.hero-trust-wrap{
  margin-top: 18px;
}
@media (min-width: 768px){
  .hero-trust-wrap{
    margin-top: 22px;
  }
}


/* MOBILE CLEAN: hide trust badges over hero on phone */
@media (max-width: 640px){
  .hero-trust-wrap{
    display:none !important;
  }
}

/* Mobile trust layout */
.enac-section-mobile .mobile-trust{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px 18px 22px;
}
.enac-section-mobile .mobile-trust-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  text-decoration:none;
  background:transparent;
  border:0;
  padding:0;
  text-align:left;
  color:inherit;
  cursor:pointer;
}
.enac-section-mobile .hero-trust-title{
  font-size:16px;
  font-weight:800;
}
.enac-section-mobile .hero-trust-sub{
  font-size:14px;
}

/* Mobile trust centered */
@media (max-width: 640px){
  .enac-section-mobile .mobile-trust{
    align-items:center;
    text-align:center;
  }
  .enac-section-mobile .mobile-trust-item{
    align-items:center;
    text-align:center;
  }
  .enac-section-mobile .hero-trust-text{
    align-items:center;
    text-align:center;
  }
}
