﻿/* Sezione La Nave */
.nave-content {
    max-width: 1120px;
    margin: 0 auto;
    color: #182838;
}

.nave-page-header {
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid #c8b98f;
}

.nave-eyebrow {
    margin: 0 0 7px;
    color: #8b6a1d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.nave-page-header h1 {
    margin: 0;
    color: #0b2f50;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.05;
}

.nave-lead {
    max-width: 850px;
    margin: 0 0 34px;
    color: #425568;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.65;
}

.nave-prose {
    max-width: 900px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.78;
}

.nave-prose p {
    margin: 0 0 1.25em;
}

.nave-prose h2,
.nave-prose h3,
.nave-gallery-section h2 {
    margin: 2.2em 0 .7em;
    color: #6d1f28;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

.nave-prose h2,
.nave-gallery-section h2 { font-size: 30px; }
.nave-prose h3 { font-size: 23px; }

.nave-prose ul,
.nave-prose ol {
    margin: 0 0 1.4em 1.5em;
}

.nave-prose table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.nave-prose th,
.nave-prose td {
    padding: 10px 12px;
    border: 1px solid #d1c5a5;
    vertical-align: top;
}

.nave-prose th {
    background: #0b2f50;
    color: #fff;
}

.nave-technical-data {
    margin-top: 42px;
    padding: 34px;
    background: #f7f1e3;
    border: 1px solid #d8c9a2;
}

.nave-gallery-section {
    margin-top: 54px;
    padding-top: 1px;
    border-top: 1px solid #c8b98f;
}

.nave-gallery-section > p {
    color: #556575;
}

.nave-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 44px;
}

.nave-gallery-profiles {
    margin-top: 15px;
}

.nave-photo-card {
    margin: 0;
    overflow: hidden;
    background: #f7f1e3;
    border: 1px solid #d5c8aa;
    box-shadow: 0 8px 22px rgba(8, 35, 57, .08);
}

.nave-photo-card a {
    display: block;
    background: #102b44;
    cursor: zoom-in;
}

.nave-photo-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #edf0f2;
    transition: transform .25s ease, opacity .25s ease;
}

.nave-photo-card a:hover img {
    transform: scale(1.025);
    opacity: .92;
}

.nave-photo-card figcaption {
    min-height: 52px;
    padding: 13px 15px;
    color: #263c50;
    font-size: 14px;
    line-height: 1.35;
}

.nave-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    padding: 0;
    background: rgba(3, 18, 31, .96);
}

.nave-lightbox.is-open {
    display: block;
}

.nave-lightbox-stage {
    position: absolute;
    inset: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #b99a4a #071d30;
}

.nave-lightbox-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
    padding: 76px 82px 82px;
    box-sizing: border-box;
}

.nave-lightbox-image {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    max-height: none;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .48);
}

.nave-lightbox-caption {
    position: fixed;
    z-index: 2;
    left: 50%;
    bottom: 18px;
    width: max-content;
    max-width: calc(100vw - 48px);
    margin: 0;
    padding: 12px 20px;
    border: 1px solid rgba(216, 201, 162, .72);
    background: rgba(8, 43, 73, .96);
    color: #f4e7bf;
    text-align: center;
    transform: translateX(-50%);
}

.nave-lightbox-close,
.nave-lightbox-control,
.nave-lightbox-nav {
    position: fixed;
    z-index: 3;
    border: 1px solid #d8c9a2;
    background: #082b49;
    color: #fff;
    cursor: pointer;
}

.nave-lightbox-close {
    top: 20px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 31px;
}

.nave-lightbox-nav {
    top: 50%;
    width: 58px;
    height: 78px;
    border-radius: 6px;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
}

.nave-lightbox-previous {
    left: 20px;
}

.nave-lightbox-next {
    right: 20px;
}

.nave-lightbox-nav:hover,
.nave-lightbox-nav:focus-visible {
    background: #134b73;
}

.nave-lightbox-nav[hidden] {
    display: none;
}

.nave-lightbox-controls {
    position: fixed;
    z-index: 3;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.nave-lightbox-control {
    position: static;
    min-width: 45px;
    height: 42px;
    padding: 0 12px;
    font-size: 20px;
}

body.nave-modal-open {
    overflow: hidden;
}

@media (max-width: 850px) {
    .nave-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nave-prose { font-size: 17px; }
}

@media (max-width: 560px) {
    .nave-page-header h1 { font-size: 35px; }
    .nave-lead { font-size: 18px; }
    .nave-technical-data { padding: 22px 18px; }
    .nave-gallery { grid-template-columns: 1fr; gap: 16px; }
    .nave-photo-card img { height: auto; max-height: 380px; }
    .nave-lightbox { padding: 12px; }
    .nave-lightbox-canvas { padding-right: 52px; padding-left: 52px; }
    .nave-lightbox-close { top: 10px; right: 10px; }
    .nave-lightbox-controls { top: 14px; left: 10px; }
    .nave-lightbox-nav { width: 44px; height: 62px; font-size: 30px; }
    .nave-lightbox-previous { left: 6px; }
    .nave-lightbox-next { right: 6px; }
}
/* Fotografia principale nella pagina della costruzione */
.nave-feature-photo {
    width: min(720px, 100%);
    margin: 34px auto 52px;
    text-align: center;
}

.nave-feature-photo a {
    display: block;
    padding: 10px;
    background: #f7f1e3;
    border: 1px solid #d8c9a2;
    box-shadow: 0 10px 24px rgba(8, 35, 57, .16);
    cursor: zoom-in;
}

.nave-feature-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.nave-feature-photo figcaption {
    margin-top: 13px;
    color: #182838;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.4;
}
/* Immagini inserite nel flusso della scheda Incisa della Rocchetta */
.nave-incisa-text .nave-inline-figure {
    width: min(680px, 100%);
    margin: 30px auto 34px;
    text-align: center;
}

.nave-incisa-text .nave-inline-figure a {
    display: block;
    padding: 9px;
    background: #f7f1e3;
    border: 1px solid #d8c9a2;
    box-shadow: 0 8px 22px rgba(8, 35, 57, .12);
    cursor: zoom-in;
}

.nave-incisa-text .nave-inline-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.nave-incisa-text .nave-inline-figure figcaption {
    margin-top: 10px;
    color: #425568;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
}

.nave-incisa-text .nave-inline-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: end;
    margin: 30px 0 38px;
}

.nave-incisa-text .nave-inline-pair .nave-inline-figure {
    width: 100%;
    margin: 0;
}

.nave-incisa-text .nave-weapon-heading {
    margin: 34px 0 14px;
    color: #6d1f28;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 650px) {
    .nave-incisa-text .nave-inline-pair {
        grid-template-columns: 1fr;
    }
}
/* Richiami e note della Scheda Incisa */
.nave-note-ref {
    margin-left: .12em;
    font-size: .72em;
    line-height: 0;
    vertical-align: super;
}

.nave-note-ref a,
.nave-note-back {
    color: var(--nave-accent, #7a2633);
    font-weight: 700;
    text-decoration: none;
}

.nave-note-ref a:hover,
.nave-note-ref a:focus,
.nave-note-back:hover,
.nave-note-back:focus {
    text-decoration: underline;
}

.nave-footnote {
    scroll-margin-top: 7rem;
}

.nave-note-back {
    display: inline-block;
    margin-right: .4em;
}

.nave-footnote:target,
.nave-note-ref:target {
    background: rgba(181, 144, 71, .16);
    outline: .2rem solid rgba(181, 144, 71, .16);
}

.nave-note-ref {
    scroll-margin-top: 7rem; /* richiamo nota */
}



