
:root{
  --navy:#021737;
  --navy2:#000d25;
  --blue:#0063c8;
  --light:#f7f9fc;
  --text:#061633;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:white;
}

.navbar{
  position:sticky;
  top:0;
  z-index:50;
  height:78px;
  display:grid;
  grid-template-columns:260px 1fr auto;
  align-items:center;
  gap:20px;
  padding:0 28px;
  background:linear-gradient(90deg,var(--navy2),var(--navy));
  box-shadow:0 4px 18px rgba(0,0,0,.2);
}

.nav-logo img{
  width:230px;
  height:58px;
  object-fit:contain;
  object-position:left center;
  display:block;
}

nav{
  display:flex;
  justify-content:center;
  gap:44px;
}

nav a{
  color:white;
  text-decoration:none;
  text-transform:uppercase;
  font-size:15px;
  font-weight:800;
  padding:29px 0 24px;
  border-bottom:3px solid transparent;
}

nav a:hover{
  border-bottom-color:#0b8cff;
}

.whatsapp-top{
  background:#12b84f;
  color:white;
  text-decoration:none;
  font-weight:900;
  padding:13px 18px;
  border-radius:10px;
  white-space:nowrap;
}

.menu{
  display:none;
}

.hero{
  min-height:560px;
  padding:22px 20px 26px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle,#fff 0%,#fff 62%,#f3f6fb 100%);
  text-align:center;
}

.hero-logo{
  width:min(930px,94vw);
  max-height:455px;
  object-fit:contain;
  display:block;
}

.hero p{
  margin:16px 0 0;
  color:#004da5;
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:clamp(27px,3.4vw,46px);
  line-height:1.1;
}

.services{
  width:min(1210px,96%);
  margin:0 auto;
  padding:18px 0 30px;
}

.title-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
}

.title-row span{
  height:2px;
  background:#0063c8;
}

.title-row h1,
.title-row h2{
  margin:0;
  text-align:center;
  color:var(--navy);
  text-transform:uppercase;
  font-size:34px;
  white-space:nowrap;
}

.services > h2{
  margin:8px 0 26px;
  color:#0063c8;
  text-transform:uppercase;
  text-align:center;
  font-size:21px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.card{
  background:white;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  overflow:hidden;
  padding:0;
}

.card-title{
  min-height:112px;
  display:grid;
  grid-template-columns:48px 1fr;
  gap:10px;
  align-items:start;
  padding:18px 12px 10px;
}

.card-title b{
  width:43px;
  height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  color:white;
  font-size:23px;
  background:linear-gradient(145deg,#0073db,#003f91);
}

.card-title h3{
  margin:0;
  color:var(--navy);
  font-size:18px;
  line-height:1.15;
  text-transform:uppercase;
}

.photo-box{
  width:100%;
  background:#fff;
  padding:0 10px 18px;
}

.photo-box img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  border-radius:6px;
}

/* Mantiene proporzioni complete: nessuna foto viene tagliata */
.card img{
  object-fit:contain !important;
}

.why{
  width:min(1210px,96%);
  margin:0 auto 26px;
}

.title-row.small h2{
  font-size:24px;
}

.why-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid #dde5ef;
  border-radius:16px;
  overflow:hidden;
  background:white;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.why-grid div{
  min-height:132px;
  padding:20px 18px;
  border-right:1px solid #dde5ef;
}

.why-grid div:last-child{
  border-right:0;
}

.why-grid i{
  display:block;
  color:#0063c8;
  font-style:normal;
  font-size:34px;
  margin-bottom:8px;
}

.why-grid strong{
  display:block;
  color:#0063c8;
  text-transform:uppercase;
  font-size:14px;
  line-height:1.2;
  margin-bottom:8px;
}

.why-grid p{
  margin:0;
  font-size:13px;
  line-height:1.35;
}

footer{
  width:min(1210px,96%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.25fr 1fr;
  background:linear-gradient(90deg,#001330,#061d44);
  color:white;
  border-radius:10px 10px 0 0;
  overflow:hidden;
}

footer div{
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px 36px;
  border-right:1px solid rgba(255,255,255,.32);
}

footer div:last-child{
  border-right:0;
}

footer small{
  font-weight:900;
  text-transform:uppercase;
  opacity:.95;
}

footer a,
footer p{
  margin:6px 0 0;
  color:white;
  text-decoration:none;
  font-size:22px;
}

.copyright{
  background:#0051b0;
  color:white;
  text-align:center;
  padding:13px 20px;
  font-size:14px;
}

.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:70;
  background:#12b84f;
  color:white;
  text-decoration:none;
  font-weight:900;
  padding:14px 18px;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
}

@media(max-width:1100px){
  .navbar{
    grid-template-columns:230px 1fr;
  }

  .whatsapp-top{
    display:none;
  }

  .cards{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }

  .photo-box{
    padding:0 14px 18px;
  }

  .why-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .why-grid div{
    border-bottom:1px solid #dde5ef;
  }

  footer{
    grid-template-columns:1fr;
  }

  footer div{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.32);
  }
}

@media(max-width:720px){
  .navbar{
    height:auto;
    min-height:72px;
    grid-template-columns:1fr auto;
    padding:8px 14px;
  }

  .nav-logo img{
    width:205px;
    height:55px;
  }

  .menu{
    display:block;
    border:0;
    background:transparent;
    color:white;
    font-size:30px;
    cursor:pointer;
  }

  nav{
    display:none;
    grid-column:1/3;
    flex-direction:column;
    gap:0;
    width:100%;
    padding-bottom:10px;
  }

  .open-menu nav{
    display:flex;
  }

  nav a{
    text-align:center;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.15);
  }

  .hero{
    min-height:auto;
    padding:22px 10px 18px;
  }

  .hero-logo{
    width:100%;
    max-height:none;
  }

  .hero p{
    font-size:28px;
  }

  .services{
    width:94%;
    padding-top:12px;
  }

  .title-row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .title-row span{
    display:none;
  }

  .title-row h1,
  .title-row h2{
    white-space:normal;
    font-size:27px;
  }

  .services > h2{
    font-size:16px;
    margin-bottom:16px;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .card-title{
    min-height:auto;
    padding-bottom:12px;
  }

  .photo-box{
    padding:0 10px 16px;
  }

  .why-grid{
    grid-template-columns:1fr;
  }

  .why-grid div{
    border-right:0;
  }

  footer{
    width:100%;
    border-radius:0;
  }

  footer div{
    padding:18px 22px;
  }

  footer a,
  footer p{
    font-size:18px;
  }

  .whatsapp-float{
    left:16px;
    right:16px;
    text-align:center;
  }
}


/* Anteprima servizi in homepage senza blocchi immagini */
.services-preview{
  width:min(980px,94%);
  margin:0 auto;
  padding:22px 0 34px;
  text-align:center;
}

.services-preview h2{
  margin:8px 0 12px;
  color:#0063c8;
  text-transform:uppercase;
  text-align:center;
  font-size:21px;
}

.services-preview p{
  max-width:760px;
  margin:0 auto 22px;
  font-size:18px;
  line-height:1.55;
}

.button-primary{
  display:inline-block;
  background:#0063c8;
  color:white;
  text-decoration:none;
  text-transform:uppercase;
  font-weight:900;
  padding:15px 24px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.page-hero{
  min-height:330px;
  padding:28px 20px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle,#fff 0%,#fff 62%,#f3f6fb 100%);
  text-align:center;
}

.page-logo{
  width:min(620px,90vw);
  max-height:260px;
  object-fit:contain;
  display:block;
}

.page-hero p{
  margin:10px 0 0;
  color:#004da5;
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:clamp(25px,3vw,38px);
  line-height:1.1;
}

@media(max-width:720px){
  .services-preview h2{
    font-size:16px;
  }

  .services-preview p{
    font-size:16px;
  }

  .page-hero{
    min-height:auto;
    padding:22px 10px 12px;
  }

  .page-logo{
    width:100%;
    max-height:none;
  }
}


.banner-link{
  display:block;
  margin:22px auto;
  max-width:1400px;
}

.banner-servizi{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.services-preview p{
  margin-top:18px;
}



/* Pagina PRIVATI */
.privati-hero{
  min-height:300px;
}

.privati-section{
  width:min(1180px,94%);
  margin:0 auto;
  padding:28px 0 42px;
}

.privati-section > h2{
  margin:10px 0 14px;
  color:#0063c8;
  text-transform:uppercase;
  text-align:center;
  font-size:clamp(20px,3vw,32px);
  line-height:1.15;
}

.privati-intro{
  max-width:850px;
  margin:0 auto 28px;
  text-align:center;
  font-size:18px;
  line-height:1.55;
}

.privati-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:25px;
}

.privati-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.placeholder-img{
  height:270px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  background:
    linear-gradient(135deg, rgba(0,99,200,.12), rgba(2,23,55,.18)),
    #f4f7fb;
  color:#021737;
  font-weight:900;
  text-transform:uppercase;
  font-size:20px;
}

.privati-card h3{
  margin:0;
  padding:20px 20px 8px;
  color:#021737;
  text-transform:uppercase;
  font-size:21px;
}

.privati-card p{
  margin:0;
  padding:0 20px 24px;
  font-size:16px;
  line-height:1.45;
}

.privati-cta{
  margin:34px auto 0;
  max-width:780px;
  text-align:center;
  background:linear-gradient(90deg,#001330,#061d44);
  color:#fff;
  border-radius:18px;
  padding:28px 24px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}

.privati-cta h3{
  margin:0 0 8px;
  text-transform:uppercase;
  font-size:26px;
}

.privati-cta p{
  margin:0 0 20px;
  font-size:19px;
}

@media(max-width:900px){
  .privati-grid{
    grid-template-columns:1fr;
  }

  .placeholder-img{
    height:230px;
  }
}


.real-img{
height:270px;
display:flex;
align-items:center;
justify-content:center;
background:#fff;
padding:15px;
}
.real-img img{
max-width:100%;
max-height:100%;
object-fit:contain;
display:block;
}


/* GALLERIA IMMAGINI / VIDEO */
.gallery-section{
  width:min(1210px,96%);
  margin:0 auto;
  padding:34px 0 28px;
}

.gallery-section .title-row h1{
  font-size:34px;
}

.gallery-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.gallery-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:12px;
}

.gallery-card img{
  width:100%;
  height:360px;
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#fff;
}

.video-section{
  padding-top:18px;
  padding-bottom:46px;
}

.video-placeholder{
  margin-top:28px;
  background:#fff;
  border:2px dashed #0063c8;
  border-radius:18px;
  padding:45px 20px;
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.video-placeholder p{
  margin:0;
  color:#061633;
  font-size:20px;
  font-weight:700;
}

@media(max-width:1000px){
  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }

  .gallery-card img{
    height:330px;
  }
}

@media(max-width:720px){
  .gallery-section{
    width:94%;
    padding:24px 0;
  }

  .gallery-section .title-row h1{
    font-size:27px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .gallery-card img{
    height:auto;
    max-height:none;
  }
}


/* AGGIORNAMENTO GALLERIA: FOTO E VIDEO 3 PER RIGA */
.gallery-grid,
.video-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}

.gallery-card,
.video-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:12px;
}

.gallery-card img{
  width:100%;
  height:260px;
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#fff;
}

.video-card video{
  width:100%;
  height:260px;
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#000;
}

.video-placeholder{
  display:none;
}

@media(max-width:1000px){
  .gallery-grid,
  .video-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .gallery-card img,
  .video-card video{
    height:250px;
  }
}

@media(max-width:720px){
  .gallery-grid,
  .video-grid{
    grid-template-columns:1fr;
  }

  .gallery-card img,
  .video-card video{
    height:auto;
    max-height:420px;
  }
}


/* === GALLERIA COME PAGINA SERVIZI: 3 RIQUADRI IN UNA RIGA === */
.gallery-page-section{
  width:min(1210px,96%);
  margin:0 auto;
  padding:34px 0 28px;
}

.gallery-page-section .title-row{
  margin-bottom:26px;
}

.gallery-page-section .title-row h1{
  font-size:34px;
}

.gallery-row-3{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:14px !important;
  width:100% !important;
  align-items:stretch !important;
}

.gallery-service-card{
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  overflow:hidden !important;
  padding:0 !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.gallery-media-box{
  width:100% !important;
  height:300px !important;
  padding:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
}

.gallery-media-box img,
.gallery-media-box video{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:10px !important;
}

.video-media-box{
  background:#111 !important;
}

.video-media-box video{
  background:#000 !important;
}

@media(max-width:1000px){
  .gallery-row-3{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:16px !important;
  }

  .gallery-media-box{
    height:290px !important;
  }
}

@media(max-width:720px){
  .gallery-page-section{
    width:94% !important;
    padding:24px 0 !important;
  }

  .gallery-page-section .title-row h1{
    font-size:27px !important;
  }

  .gallery-row-3{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .gallery-media-box{
    height:260px !important;
  }
}


/* === PAGINA IMMAGINI / VIDEO FINALE === */
.gallery-hero{
  min-height:330px;
}

.gallery-final-section{
  width:min(1210px,96%);
  margin:0 auto;
  padding:34px 0 34px;
}

.gallery-final-section .title-row{
  margin-bottom:26px;
}

.gallery-final-section .title-row h1{
  font-size:34px;
}

.gallery-final-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:14px !important;
  width:100% !important;
  align-items:stretch !important;
}

.gallery-final-card{
  position:relative !important;
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(0,0,0,.12) !important;
  overflow:hidden !important;
  min-width:0 !important;
  padding:12px !important;
}

.gallery-number{
  position:absolute !important;
  top:20px !important;
  left:20px !important;
  z-index:2 !important;
  width:46px !important;
  height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:8px !important;
  background:linear-gradient(145deg,#0073db,#003f91) !important;
  color:#fff !important;
  font-size:22px !important;
  font-weight:900 !important;
}

.gallery-final-media{
  width:100% !important;
  height:260px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  border-radius:12px !important;
  overflow:hidden !important;
}

.gallery-final-media img,
.gallery-final-media video{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:10px !important;
}

.video-media{
  background:#000 !important;
}

.video-media video{
  background:#000 !important;
}

.empty-card{
  opacity:.95 !important;
}

.empty-media{
  border:2px dashed #0063c8 !important;
  background:#f6f9ff !important;
}

.empty-media span{
  color:#0063c8 !important;
  text-transform:uppercase !important;
  font-size:24px !important;
  font-weight:900 !important;
}

@media(max-width:1100px){
  .gallery-final-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:16px !important;
  }

  .gallery-final-media{
    height:280px !important;
  }
}

@media(max-width:720px){
  .gallery-final-section{
    width:94% !important;
    padding:24px 0 !important;
  }

  .gallery-final-section .title-row h1{
    font-size:27px !important;
  }

  .gallery-final-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .gallery-final-media{
    height:260px !important;
  }
}


/* === IMMAGINI/VIDEO: STESSI RIQUADRI DELLA PAGINA SERVIZI === */
.gallery-like-services{
  padding-top:28px !important;
  padding-bottom:38px !important;
}

.gallery-like-services .title-row{
  margin-bottom:28px !important;
}

.gallery-like-services .title-row h1{
  font-size:34px !important;
}

.gallery-like-services .cards{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:14px !important;
}

.gallery-like-services .card{
  min-height:0 !important;
}

.gallery-like-services .card-title{
  min-height:112px !important;
}

.gallery-like-services .photo-box{
  height:260px !important;
  padding:0 10px 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.gallery-like-services .photo-box img,
.gallery-like-services .photo-box video{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:8px !important;
  background:#fff !important;
}

.gallery-like-services .video-photo-box video{
  background:#000 !important;
}

.empty-photo-box{
  border:2px dashed #0063c8 !important;
  border-radius:12px !important;
  margin:0 10px 18px !important;
  padding:0 !important;
  background:#f6f9ff !important;
}

.empty-photo-box span{
  color:#0063c8 !important;
  font-size:24px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
}

@media(max-width:1100px){
  .gallery-like-services .cards{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:16px !important;
  }

  .gallery-like-services .photo-box{
    height:280px !important;
  }
}

@media(max-width:720px){
  .gallery-like-services .cards{
    grid-template-columns:1fr !important;
  }

  .gallery-like-services .title-row h1{
    font-size:27px !important;
  }

  .gallery-like-services .photo-box{
    height:260px !important;
  }
}


/* === LIGHTBOX FOTO / VIDEO === */
.open-lightbox{
  cursor:pointer !important;
}

body.lightbox-open{
  overflow:hidden !important;
}

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.88);
  padding:24px;
}

.lightbox.active{
  display:flex;
}

.lightbox-content{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-content img,
.lightbox-content video{
  max-width:96vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
  background:#000;
}

.lightbox-close{
  position:fixed;
  top:18px;
  right:24px;
  z-index:10000;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#001b44;
  font-size:34px;
  line-height:44px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}

@media(max-width:720px){
  .lightbox{
    padding:12px;
  }

  .lightbox-content img,
  .lightbox-content video{
    max-width:96vw;
    max-height:84vh;
  }

  .lightbox-close{
    top:12px;
    right:12px;
    width:44px;
    height:44px;
    font-size:30px;
  }
}


/* === LIGHTBOX CORRETTO: APERTURA IMMEDIATA A SCHERMO INTERO === */
.open-lightbox,
.gallery-like-services .photo-box img,
.gallery-like-services .photo-box video{
  cursor:pointer !important;
}

.open-lightbox:hover,
.gallery-like-services .photo-box img:hover,
.gallery-like-services .photo-box video:hover{
  opacity:.88 !important;
}

html.lightbox-open,
body.lightbox-open{
  overflow:hidden !important;
}

.lightbox-overlay{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  z-index:2147483647 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.92) !important;
  padding:24px !important;
  margin:0 !important;
}

.lightbox-overlay.active{
  display:flex !important;
}

.lightbox-content{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
}

.lightbox-content img,
.lightbox-content video{
  max-width:96vw !important;
  max-height:90vh !important;
  max-height:90dvh !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:12px !important;
  background:#000 !important;
  box-shadow:0 12px 40px rgba(0,0,0,.5) !important;
}

.lightbox-close{
  position:fixed !important;
  top:18px !important;
  right:22px !important;
  z-index:2147483647 !important;
  width:50px !important;
  height:50px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#001b44 !important;
  font-size:36px !important;
  line-height:46px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 6px 20px rgba(0,0,0,.35) !important;
}

@media(max-width:720px){
  .lightbox-overlay{
    padding:12px !important;
  }

  .lightbox-content img,
  .lightbox-content video{
    max-width:96vw !important;
    max-height:84vh !important;
    max-height:84dvh !important;
  }

  .lightbox-close{
    top:12px !important;
    right:12px !important;
    width:46px !important;
    height:46px !important;
    font-size:32px !important;
    line-height:42px !important;
  }
}


/* === LIGHTBOX DEFINITIVO SOPRA A TUTTO === */
.media-link{
  display:flex !important;
  width:100% !important;
  height:100% !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  text-decoration:none !important;
}

.media-link img,
.media-link video{
  cursor:pointer !important;
}

.media-link:hover img,
.media-link:hover video{
  opacity:.86 !important;
}

html.no-scroll,
body.no-scroll{
  overflow:hidden !important;
  height:100% !important;
}

.fullscreen-lightbox{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  z-index:2147483647 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.94) !important;
  margin:0 !important;
  padding:20px !important;
}

.fullscreen-lightbox.is-open{
  display:flex !important;
}

.fullscreen-inner{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
}

.fullscreen-inner img,
.fullscreen-inner video{
  max-width:96vw !important;
  max-height:90vh !important;
  max-height:90dvh !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  background:#000 !important;
  border-radius:12px !important;
  box-shadow:0 12px 40px rgba(0,0,0,.55) !important;
}

.fullscreen-close{
  position:fixed !important;
  top:18px !important;
  right:22px !important;
  z-index:2147483647 !important;
  width:52px !important;
  height:52px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#001b44 !important;
  font-size:38px !important;
  line-height:48px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 6px 20px rgba(0,0,0,.4) !important;
}

@media(max-width:720px){
  .fullscreen-lightbox{
    padding:10px !important;
  }

  .fullscreen-inner img,
  .fullscreen-inner video{
    max-width:96vw !important;
    max-height:84vh !important;
    max-height:84dvh !important;
  }

  .fullscreen-close{
    top:12px !important;
    right:12px !important;
    width:46px !important;
    height:46px !important;
    font-size:32px !important;
    line-height:42px !important;
  }
}


/* === DIALOG NATIVO FOTO/VIDEO: SEMPRE SOPRA A TUTTO === */
.media-link,
.js-media-open,
.js-media-open img,
.js-media-open video{
  cursor:pointer !important;
}

.js-media-open:hover img,
.js-media-open:hover video{
  opacity:.86 !important;
}

.media-dialog{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:24px !important;
  border:0 !important;
  background:rgba(0,0,0,.94) !important;
  z-index:2147483647 !important;
  overflow:hidden !important;
}

.media-dialog::backdrop{
  background:rgba(0,0,0,.94) !important;
}

.media-dialog:not([open]){
  display:none !important;
}

.media-dialog[open]{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.media-dialog-content{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.media-dialog-content img,
.media-dialog-content video{
  max-width:96vw !important;
  max-height:90vh !important;
  max-height:90dvh !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  background:#000 !important;
  border-radius:12px !important;
  box-shadow:0 12px 40px rgba(0,0,0,.55) !important;
}

.media-dialog-close{
  position:fixed !important;
  top:18px !important;
  right:22px !important;
  z-index:2147483647 !important;
  width:52px !important;
  height:52px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#001b44 !important;
  font-size:38px !important;
  line-height:48px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 6px 20px rgba(0,0,0,.4) !important;
}

@media(max-width:720px){
  .media-dialog{
    padding:10px !important;
  }

  .media-dialog-content img,
  .media-dialog-content video{
    max-width:96vw !important;
    max-height:84vh !important;
    max-height:84dvh !important;
  }

  .media-dialog-close{
    top:12px !important;
    right:12px !important;
    width:46px !important;
    height:46px !important;
    font-size:32px !important;
    line-height:42px !important;
  }
}


/* === CATEGORIE PAGINA IMMAGINI === */
.image-category{
  padding-top:26px !important;
  padding-bottom:32px !important;
}

.image-category .title-row{
  margin-bottom:26px !important;
}

.image-category .title-row h1{
  font-size:30px !important;
  white-space:normal !important;
}

.image-category .empty-photo-box{
  min-height:260px !important;
}

@media(max-width:720px){
  .image-category .title-row h1{
    font-size:25px !important;
  }
}

/* === PAGINA RICAMBI & ACCESSORI === */
.shop-section{width:min(1210px,96%);margin:0 auto;padding:34px 0 46px;}
.shop-section .title-row{margin-bottom:18px;}
.shop-section .title-row h1{font-size:34px;}
.shop-intro{max-width:850px;margin:0 auto 28px;text-align:center;font-size:18px;line-height:1.5;color:#061633;}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.product-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12);display:flex;flex-direction:column;}
.product-image-link{height:230px;padding:14px;display:flex;align-items:center;justify-content:center;background:#fff;text-decoration:none;cursor:pointer;}
.product-image-link img{width:100%;height:100%;object-fit:contain;display:block;border-radius:10px;}
.product-image-link:hover img{opacity:.88;}
.product-info{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1;}
.product-code{align-self:flex-start;background:linear-gradient(145deg,#0073db,#003f91);color:#fff;font-size:14px;font-weight:900;padding:7px 10px;border-radius:8px;}
.product-info h3{margin:0;color:#061633;text-transform:uppercase;font-size:19px;line-height:1.15;}
.product-info p{margin:0;font-size:15px;line-height:1.4;}
.product-info strong{color:#0063c8;text-transform:uppercase;font-size:16px;}
.request-button{margin-top:auto;display:block;text-align:center;background:#12b84f;color:#fff;text-decoration:none;text-transform:uppercase;font-weight:900;padding:13px 14px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.16);}
.request-button:hover{filter:brightness(.95);}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:720px){.shop-section{width:94%;padding:24px 0 40px;}.shop-section .title-row h1{font-size:27px;}.product-grid{grid-template-columns:1fr;}.product-image-link{height:260px;}}


/* === RICAMBI & ACCESSORI - PRODOTTI REALI === */
.shop-section{
  width:min(1210px,96%);
  margin:0 auto;
  padding:34px 0 46px;
}

.shop-section .title-row{
  margin-bottom:18px;
}

.shop-section .title-row h1{
  font-size:34px;
}

.shop-intro{
  max-width:900px;
  margin:0 auto 26px;
  text-align:center;
  font-size:18px;
  line-height:1.5;
  color:#061633;
}

.shop-category-title{
  text-align:center;
  color:#061633;
  text-transform:uppercase;
  font-size:26px;
  margin:12px 0 26px;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.product-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  display:flex;
  flex-direction:column;
}

.product-image-link{
  height:245px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  text-decoration:none;
  cursor:pointer;
}

.product-image-link img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:10px;
}

.product-image-link:hover img{
  opacity:.88;
}

.product-info{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.product-code{
  align-self:flex-start;
  background:linear-gradient(145deg,#0073db,#003f91);
  color:#fff;
  font-size:14px;
  font-weight:900;
  padding:7px 10px;
  border-radius:8px;
}

.product-title-link{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}

.product-title-link:hover h3{
  color:#0063c8;
}

.product-info h3{
  margin:0;
  color:#061633;
  text-transform:uppercase;
  font-size:19px;
  line-height:1.15;
}

.product-info p{
  margin:0;
  font-size:15px;
  line-height:1.4;
}

.product-info strong{
  color:#0063c8;
  text-transform:uppercase;
  font-size:16px;
}

.request-button{
  margin-top:auto;
  display:block;
  text-align:center;
  background:#12b84f;
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  font-weight:900;
  padding:13px 14px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}

.request-button:hover{
  filter:brightness(.95);
}

@media(max-width:1100px){
  .product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:720px){
  .shop-section{
    width:94%;
    padding:24px 0 40px;
  }

  .shop-section .title-row h1{
    font-size:27px;
  }

  .shop-category-title{
    font-size:22px;
  }

  .product-grid{
    grid-template-columns:1fr;
  }

  .product-image-link{
    height:260px;
  }
}


/* === TITOLO PAGINA RICAMBI & ACCESSORI === */
.ricambi-title-hero{
  min-height:360px;
  background:radial-gradient(circle,#fff 0%,#fff 62%,#f3f6fb 100%);
  text-align:center;
}

.ricambi-title-hero h1{
  margin:0;
  color:#0063c8;
  font-size:clamp(42px,6vw,78px);
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

.ricambi-title-hero h2{
  margin:12px 0 0;
  color:#021737;
  font-size:clamp(28px,4vw,52px);
  line-height:1.05;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

@media(max-width:720px){
  .ricambi-title-hero{
    min-height:260px;
    padding:42px 16px;
  }
}


/* === PAGINA RICAMBI CORRETTA === */
.ricambi-title-hero{
  min-height:300px;
  padding:54px 18px 26px;
  background:radial-gradient(circle,#ffffff 0%,#ffffff 62%,#f3f6fb 100%);
  text-align:center;
}

.ricambi-title-hero h1{
  margin:0;
  color:#0063c8;
  font-size:clamp(40px,5vw,68px);
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

.ricambi-title-hero h2{
  margin:10px 0 18px;
  color:#021737;
  font-size:clamp(30px,4.2vw,56px);
  line-height:1.05;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

.ricambi-title-hero p{
  max-width:900px;
  margin:0 auto;
  color:#061633;
  font-size:20px;
  line-height:1.4;
}

.shop-section{
  padding-top:16px !important;
}

.shop-section .title-row h1{
  color:#0063c8 !important;
}

@media(max-width:720px){
  .ricambi-title-hero{
    min-height:auto;
    padding:36px 16px 20px;
  }

  .ricambi-title-hero p{
    font-size:16px;
  }
}


/* === RICAMBI E-COMMERCE CON MENU LATERALE === */
.ricambi-shop{
  width:min(1500px,96%) !important;
}

.shop-layout{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:36px;
  align-items:start;
}

.shop-sidebar{
  position:sticky;
  top:105px;
  align-self:start;
}

.sidebar-categories{
  background:#fff;
  border:1px solid #dbe4ef;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
}

.sidebar-categories details{
  border-bottom:1px solid #e6edf5;
}

.sidebar-categories details:last-child{
  border-bottom:0;
}

.sidebar-categories summary{
  list-style:none;
  cursor:pointer;
  padding:20px 22px;
  font-weight:900;
  color:#061633;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  text-transform:capitalize;
}

.sidebar-categories summary::-webkit-details-marker{
  display:none;
}

.sidebar-categories summary::after{
  content:"⌄";
  color:#003f91;
  font-size:22px;
  line-height:1;
}

.sidebar-categories details[open] summary{
  color:#0063c8;
  background:#f7fbff;
}

.sidebar-categories details[open] summary::after{
  transform:rotate(180deg);
}

.sidebar-categories a{
  display:block;
  padding:0 22px 18px 22px;
  color:#061633;
  text-decoration:none;
  font-size:15px;
}

.sidebar-categories a:hover{
  color:#0063c8;
}

.sidebar-help{
  margin-top:24px;
  background:#fff;
  border:1px solid #dbe4ef;
  border-radius:16px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
}

.sidebar-help strong{
  display:block;
  color:#061633;
  font-size:18px;
  margin-bottom:8px;
}

.sidebar-help p{
  margin:0 0 18px;
  color:#061633;
  line-height:1.45;
}

.sidebar-help a{
  display:block;
  text-align:center;
  border:2px solid #12b84f;
  color:#12b84f;
  text-decoration:none;
  font-weight:900;
  border-radius:10px;
  padding:13px;
}

.sidebar-help a:hover{
  background:#12b84f;
  color:#fff;
}

.shop-content{
  min-width:0;
}

.empty-category-title{
  margin-top:34px !important;
  margin-bottom:20px !important;
  scroll-margin-top:120px;
}

.empty-category-title h1{
  color:#0063c8 !important;
}

#accessori-aspirazione{
  scroll-margin-top:120px;
}

@media(max-width:1180px){
  .shop-layout{
    grid-template-columns:1fr;
  }

  .shop-sidebar{
    position:relative;
    top:auto;
  }

  .sidebar-categories{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sidebar-categories details{
    border-right:1px solid #e6edf5;
  }
}

@media(max-width:720px){
  .ricambi-shop{
    width:94% !important;
  }

  .sidebar-categories{
    grid-template-columns:1fr;
  }

  .sidebar-categories summary{
    padding:17px 18px;
  }

  .shop-layout{
    gap:22px;
  }
}


/* === FIX DEFINITIVO LAYOUT RICAMBI E-COMMERCE === */
.ricambi-title-hero{
  min-height:auto !important;
  padding:46px 18px 26px !important;
  background:radial-gradient(circle,#ffffff 0%,#ffffff 62%,#f3f6fb 100%) !important;
  text-align:center !important;
}

.ricambi-title-hero h1{
  margin:0 !important;
  color:#0063c8 !important;
  font-size:clamp(38px,5vw,66px) !important;
  line-height:1 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:1px !important;
}

.ricambi-title-hero h2{
  margin:10px 0 18px !important;
  color:#021737 !important;
  font-size:clamp(30px,4.2vw,56px) !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:1px !important;
}

.ricambi-title-hero p{
  max-width:960px !important;
  margin:0 auto !important;
  color:#061633 !important;
  font-size:20px !important;
  line-height:1.4 !important;
}

.ricambi-shop{
  width:min(1500px,96%) !important;
  margin:0 auto !important;
  padding:24px 0 48px !important;
}

.shop-layout{
  display:grid !important;
  grid-template-columns:320px minmax(0,1fr) !important;
  gap:36px !important;
  align-items:start !important;
}

.shop-sidebar{
  position:sticky !important;
  top:105px !important;
  align-self:start !important;
  z-index:2 !important;
}

.sidebar-categories{
  background:#fff !important;
  border:1px solid #dbe4ef !important;
  border-radius:16px !important;
  overflow:hidden !important;
  box-shadow:0 8px 24px rgba(0,0,0,.10) !important;
}

.sidebar-categories a{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:20px 22px !important;
  border-bottom:1px solid #e6edf5 !important;
  color:#061633 !important;
  text-decoration:none !important;
  font-weight:900 !important;
  font-size:17px !important;
}

.sidebar-categories a::after{
  content:"›" !important;
  color:#003f91 !important;
  font-size:24px !important;
  line-height:1 !important;
}

.sidebar-categories a:last-child{
  border-bottom:0 !important;
}

.sidebar-categories a.active,
.sidebar-categories a:hover{
  color:#0063c8 !important;
  background:#f7fbff !important;
}

.sidebar-help{
  margin-top:24px !important;
  background:#fff !important;
  border:1px solid #dbe4ef !important;
  border-radius:16px !important;
  padding:24px !important;
  box-shadow:0 8px 24px rgba(0,0,0,.10) !important;
}

.sidebar-help strong{
  display:block !important;
  color:#061633 !important;
  font-size:18px !important;
  margin-bottom:8px !important;
}

.sidebar-help p{
  margin:0 0 18px !important;
  color:#061633 !important;
  line-height:1.45 !important;
}

.sidebar-help a{
  display:block !important;
  text-align:center !important;
  border:2px solid #12b84f !important;
  color:#12b84f !important;
  text-decoration:none !important;
  font-weight:900 !important;
  border-radius:10px !important;
  padding:13px !important;
}

.sidebar-help a:hover{
  background:#12b84f !important;
  color:#fff !important;
}

.shop-content{
  min-width:0 !important;
  overflow:hidden !important;
}

.catalog-category{
  scroll-margin-top:120px !important;
  margin-bottom:38px !important;
  clear:both !important;
}

.catalog-category .title-row{
  margin:0 0 24px !important;
}

.catalog-category .title-row h1{
  color:#0063c8 !important;
  font-size:clamp(28px,3vw,40px) !important;
  white-space:normal !important;
}

.catalog-category .product-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
}

.catalog-category .product-card{
  min-width:0 !important;
  height:auto !important;
}

.empty-category-box{
  border:2px dashed #dbe4ef !important;
  border-radius:18px !important;
  padding:38px !important;
  text-align:center !important;
  color:#0063c8 !important;
  font-weight:900 !important;
  background:#fff !important;
  text-transform:uppercase !important;
}

@media(max-width:1250px){
  .shop-layout{
    grid-template-columns:280px minmax(0,1fr) !important;
    gap:24px !important;
  }

  .catalog-category .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:980px){
  .shop-layout{
    grid-template-columns:1fr !important;
  }

  .shop-sidebar{
    position:relative !important;
    top:auto !important;
  }

  .sidebar-categories{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .catalog-category .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:720px){
  .ricambi-title-hero{
    padding:34px 16px 22px !important;
  }

  .ricambi-title-hero p{
    font-size:16px !important;
  }

  .ricambi-shop{
    width:94% !important;
  }

  .sidebar-categories{
    grid-template-columns:1fr !important;
  }

  .catalog-category .product-grid{
    grid-template-columns:1fr !important;
  }
}


/* === FIX PRODOTTI RICAMBI: TUTTE LE CARD VISIBILI === */
.catalog-category .product-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
  overflow:visible !important;
}

.catalog-category .product-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  height:auto !important;
  overflow:hidden !important;
}

.catalog-category .product-image-link{
  height:245px !important;
  min-height:245px !important;
}

.catalog-category .product-info{
  min-height:220px !important;
}

.catalog-category .request-button{
  margin-top:auto !important;
}

@media(max-width:1250px){
  .catalog-category .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:980px){
  .catalog-category .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:720px){
  .catalog-category .product-grid{
    grid-template-columns:1fr !important;
  }
}

/* === AGGIORNAMENTO ACCESSORI + TUBI FLESSIBILI === */
.catalog-category .product-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:22px !important;width:100% !important;overflow:visible !important;}
.catalog-category .product-card{display:flex !important;flex-direction:column !important;min-width:0 !important;height:auto !important;overflow:hidden !important;}
.catalog-category .product-image-link{height:245px !important;min-height:245px !important;}
.catalog-category .product-image-link img{width:100% !important;height:100% !important;object-fit:contain !important;}
.catalog-category .product-info{min-height:220px !important;}
.catalog-category .request-button{margin-top:auto !important;}
@media(max-width:1250px){.catalog-category .product-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}}
@media(max-width:980px){.catalog-category .product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:720px){.catalog-category .product-grid{grid-template-columns:1fr !important;}}

.gallery-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.10);}
.gallery-card img,.gallery-image{width:100%;height:100%;max-height:320px;object-fit:cover;display:block;cursor:pointer;}
