#Ndettaglionave ul, #Nposnave ul{margin:0;padding:0;list-style:none;}
#Ndettaglionave{}
#Ndettaglionave li, #Nposnave li{width:210px;height:25px;margin:0;padding:0;border-bottom: 1px solid #dcdcdc;margin-right:28px;float:left;}
.NCl0, .NCl1, .NCl2, .NCl3, .NCl4, .NCl5, .NCl22, .NCl6 {position:absolute;}
.NCl0{margin: 3px 0 0 5px;font-weight:bold;color: #067788;font-size:medium;}
.NCl1{margin: 5px 0 0 5px;color: #067788;font-size:x-small;font-weight:bold;}
.NCl2{margin: 5px 0 0 160px;text-align: right;width: 50px;}
.NCl3{margin:5px 0 0 280px;text-align:right;width:120px;}
.NCl33{margin:5px 0 0 460px;text-align:right;width:320px;}
.NCl4{margin: 5px 0 0 5px;color: #067788;font-size:small;font-weight:bold;}
.NCl5{margin: 3px 0 0 395px;}
.NCl22{margin: 1px 0 0 190px;}
.NCl6{margin: 9px 0 0 580px;color: #ffffff;font-size:large;}
#Ndivimage{position:absolute;margin: 0 0 0 438px;}
#Ndivnave{width:715px;min-height:170px;font-family: Arial;font-size:small;}
#Ndivimagegrande{position:absolute;margin: 6px 0 0 233px;width: 442px;height: 333px;}
#Nfotonave{width:700px;}
#Nfotonave ul{margin: 0px;padding:0px;list-style: none;}
#Nfotonave li{width: 215px;height:160px;padding:6px;float:left;}


/* Foto nave: galleria nel flusso, senza altezze fisse */
#Nfotonave{box-sizing:border-box;display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.55fr);align-items:start;gap:20px 28px;width:100%!important;max-width:100%;height:auto!important;min-height:0;margin:0;padding:0}
#Nfotonave>h1{grid-column:1/-1;margin:0;font:700 18px/1.35 Arial,Helvetica,sans-serif;color:#15364d}
#Nfotonave>#Ndivimagegrande{position:static!important;grid-column:2;grid-row:2;display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;width:100%!important;height:auto!important;min-height:0;margin:0!important;padding:0}
#Nfotonave #fotog{display:block;width:auto!important;max-width:100%!important;height:auto!important;max-height:540px;object-fit:contain;border-radius:10px;margin:0 auto}
#Nfotonave>ul{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;box-sizing:border-box;width:100%;height:auto!important;margin:0;padding:0;list-style:none}
#Nfotonave>ul>li{position:static;float:none!important;box-sizing:border-box;width:auto!important;height:auto!important;min-width:0;margin:0;padding:0}
#Nfotonave>ul>li>img{box-sizing:border-box;display:block;width:100%!important;max-width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover;border-radius:8px;cursor:pointer}
#Nfotonave>ul>li>img:hover{outline:2px solid #175b85;outline-offset:2px}
@media(max-width:680px){
#Nfotonave{grid-template-columns:minmax(0,1fr);gap:16px}
#Nfotonave>#Ndivimagegrande{grid-column:1;grid-row:2}
#Nfotonave>ul{grid-column:1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#Nfotonave #fotog{max-height:360px}
#Nfotonave>h1{font-size:16px}
}

/* Anteprime desktop più grandi; mobile invariato */
@media(min-width:681px){
#Nfotonave{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
#Nfotonave>ul{gap:12px}
}

/* Desktop: quattro anteprime in basso, due sotto la foto principale */
@media(min-width:681px){
#Nfotonave{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#Nfotonave>h1{grid-column:1/-1;margin-bottom:8px}
#Nfotonave>ul{display:contents}
#Nfotonave>#Ndivimagegrande{grid-column:3/5;grid-row:2/4}
#Nfotonave>ul>li:nth-child(1){grid-column:1;grid-row:2}
#Nfotonave>ul>li:nth-child(2){grid-column:2;grid-row:2}
#Nfotonave>ul>li:nth-child(3){grid-column:1;grid-row:3}
#Nfotonave>ul>li:nth-child(4){grid-column:2;grid-row:3}
#Nfotonave>ul>li:nth-child(5){grid-column:1;grid-row:4}
#Nfotonave>ul>li:nth-child(6){grid-column:2;grid-row:4}
#Nfotonave>ul>li:nth-child(7){grid-column:3;grid-row:4}
#Nfotonave>ul>li:nth-child(8){grid-column:4;grid-row:4}
}

/* Servizi nave: presente e assente, icone vettoriali senza file aggiuntivi. */
#Ndivnave img.NCl22[src$="/x1.png"],#Nposnave img.NCl22[src$="/x1.png"]{content:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210.5%22%20fill%3D%22%23edf8f2%22%20stroke%3D%22%23b9dfcc%22%2F%3E%3Cpath%20d%3D%22m7.5%2012%203%203%206-6%22%20fill%3D%22none%22%20stroke%3D%22%23247653%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");width:23px!important;height:23px!important;max-width:23px!important;object-fit:contain;vertical-align:middle}
#Ndivnave img.NCl22[src$="/x0.png"],#Nposnave img.NCl22[src$="/x0.png"]{content:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210.5%22%20fill%3D%22%23f4f6f8%22%20stroke%3D%22%23d9e0e6%22%2F%3E%3Cpath%20d%3D%22M8%2012h8%22%20fill%3D%22none%22%20stroke%3D%22%236d7c89%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");width:23px!important;height:23px!important;max-width:23px!important;object-fit:contain;vertical-align:middle}

/* Foto nave: carosello orizzontale con navigazione circolare. */
#Nfotonave.fv-photo-carousel{display:block!important;min-width:0;width:100%!important}
#Nfotonave.fv-photo-carousel>h1{margin:0 0 16px}
#Nfotonave.fv-photo-carousel>#Ndivimagegrande{display:none!important}
#Nfotonave.fv-photo-carousel .fv-photo-frame{position:relative;min-width:0}
#Nfotonave.fv-photo-carousel .fv-photo-frame>ul{position:relative;display:flex!important;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;width:100%;margin:0;padding:0;list-style:none;-webkit-overflow-scrolling:touch}
#Nfotonave.fv-photo-carousel .fv-photo-frame>ul::-webkit-scrollbar{display:none}
#Nfotonave.fv-photo-carousel .fv-photo-frame>ul>li{position:relative;flex:0 0 calc((100% - 28px)/3);min-width:0;width:auto!important;height:auto!important;margin:0;padding:0;float:none!important;scroll-snap-align:start}
#Nfotonave.fv-photo-carousel .fv-photo-frame>ul>li>img{display:block;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;border-radius:12px;cursor:default}
#Nfotonave.fv-photo-carousel .fv-photo-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0;padding:0 0 3px;border:1px solid #dce5ed;border-radius:50%;background:#fff;color:#163d5a;box-shadow:0 3px 12px #15364d22;font:32px/1 Arial,sans-serif;cursor:pointer}
#Nfotonave.fv-photo-carousel .fv-photo-arrow[hidden]{display:none}
#Nfotonave.fv-photo-carousel .fv-photo-prev{left:10px}
#Nfotonave.fv-photo-carousel .fv-photo-next{right:10px}
#Nfotonave.fv-photo-carousel .fv-photo-arrow:hover{background:#edf5fa}
#Nfotonave.fv-photo-carousel :focus-visible{outline:2px solid #ad1b6d;outline-offset:-3px}
#Nfotonave.fv-photo-carousel .fv-photo-counter{display:block;margin:10px 0 0;text-align:right;color:#617586;font:13px/1.4 Arial,sans-serif}
@media(max-width:900px){#Nfotonave.fv-photo-carousel .fv-photo-frame>ul>li{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:600px){#Nfotonave.fv-photo-carousel .fv-photo-frame>ul{gap:10px}#Nfotonave.fv-photo-carousel .fv-photo-frame>ul>li{flex-basis:86%}#Nfotonave.fv-photo-carousel .fv-photo-arrow{width:36px;height:36px;font-size:28px}}
@media(prefers-reduced-motion:reduce){#Nfotonave.fv-photo-carousel .fv-photo-frame>ul{scroll-behavior:auto}}

/* Evita lo zoom da doppio tocco sulle frecce, conservando pinch-to-zoom e scorrimento. */
#Nfotonave.fv-photo-carousel .fv-photo-arrow{touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}

/* Ingrandimento foto sopra la pagina, senza modificare lo scroll del documento. */
#Nfotonave.fv-photo-carousel .fv-photo-frame>ul>li>img{cursor:zoom-in}
dialog.fv-photo-lightbox{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;padding:64px 64px 58px;border:0;border-radius:0;background:#071725f5;color:white;overflow:hidden}
dialog.fv-photo-lightbox::backdrop{background:#071725e8}
.fv-photo-lightbox-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.fv-photo-lightbox-image{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;border:0;border-radius:6px}
.fv-photo-lightbox-caption{position:absolute;left:60px;right:60px;bottom:14px;margin:0;text-align:center;font:14px/1.5 Arial,Helvetica,sans-serif;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fv-photo-lightbox-control{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;padding:0 0 3px;border:1px solid #ffffff70;border-radius:8px;background:#fff;color:#15364d;font:32px/1 Arial,sans-serif;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.fv-photo-lightbox-control[hidden]{display:none}
.fv-photo-lightbox-control:hover{background:#eaf1f6}
.fv-photo-lightbox-control:focus-visible{outline:3px solid #ec92bd;outline-offset:3px}
.fv-photo-lightbox-close{top:12px;right:14px}
.fv-photo-lightbox-prev{top:50%;left:10px;transform:translateY(-50%)}
.fv-photo-lightbox-next{top:50%;right:10px;transform:translateY(-50%)}
@media(max-width:600px){dialog.fv-photo-lightbox{padding:65px 12px 100px}.fv-photo-lightbox-prev,.fv-photo-lightbox-next{top:auto;bottom:45px;transform:none}.fv-photo-lightbox-prev{left:calc(50% - 54px)}.fv-photo-lightbox-next{right:calc(50% - 54px)}.fv-photo-lightbox-caption{left:12px;right:12px;bottom:12px;font-size:12px}}
