/* Gallery: griglia fotografica, video e iniziative dal riferimento fornito. */
.gallery-page .nav-section-active { color:var(--orange); }
.gallery-page h2 { text-transform:none; }
.gallery-photos { padding:36px 0 40px; }
.gallery-intro { font-size:16px; line-height:1.6; margin-bottom:25px; color:#233e50; }
.gallery-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gallery-photo { position:relative; display:block; border-radius:16px; overflow:hidden; background:#e9eff3; }
.gallery-photo img { display:block; width:100%; height:auto; aspect-ratio:1.8; object-fit:cover; transition:transform .25s; }
.gallery-photo:nth-child(4) img { object-position:center 65%; }
.gallery-photo:last-child { grid-column:2; }
.gallery-photo>span { position:absolute; inset:auto 0 0; display:flex; justify-content:space-between; align-items:center; padding:22px 15px 11px; color:#fff; background:linear-gradient(transparent,#022335d9); font-size:13px; font-weight:700; }
.gallery-photo>span svg { width:22px; height:22px; }
.gallery-photo:hover img { transform:scale(1.035); }
.gallery-videos { position:relative; background:var(--navy); color:#fff; padding:38px 0; }
.gallery-video-grid { display:grid; grid-template-columns:1fr 1fr; gap:23px; }
.gallery-video:last-child { grid-column:1/-1; width:calc(50% - 12px); justify-self:center; }
.gallery-player { aspect-ratio:2.3; position:relative; background:#021e2c; border:1px solid #ffffff70; border-radius:14px; overflow:hidden; }
.gallery-video-start { display:block; position:relative; width:100%; height:100%; padding:0; border:0; color:#fff; background:#022335; cursor:pointer; }
.gallery-video-start img { width:100%; height:100%; display:block; object-fit:cover; }
.gallery-video-start::after { content:""; position:absolute; inset:0; background:#02233525; transition:background .2s; }
.gallery-video-start:hover::after { background:#02233505; }
.gallery-play { position:absolute; z-index:1; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:60px; height:60px; border:3px solid #fff; border-radius:50%; background:#032b404d; padding-left:4px; font-size:26px; }
.gallery-video-label { position:absolute; z-index:1; bottom:0; left:0; right:0; background:#032b40c9; padding:7px 14px; text-align:left; font-size:13px; font-weight:700; }
.gallery-video>a { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:13px; color:#d4e4ed; }
.gallery-video>a:hover { color:#ffab87; }
.gallery-video>a svg { width:18px; height:18px; }
.gallery-player iframe { width:100%; height:100%; display:block; border:0; }
.gallery-topics { padding:38px 0 40px; }
.gallery-topic-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; }
.gallery-topic { display:flex; align-items:flex-start; gap:18px; scroll-margin-top:25px; }
.gallery-topic+.gallery-topic { border-left:1px solid var(--orange); padding-left:24px; }
.gallery-topic>svg { width:43px; height:43px; color:var(--orange); flex-shrink:0; margin-top:6px; stroke-width:1.6; }
.gallery-page .gallery-topic h2 { font-size:19px; line-height:1.25; letter-spacing:-.5px; margin-bottom:15px; }
.gallery-topic p { font-size:14px; line-height:1.6; }
.gallery-topic p+p { margin-top:12px; }
.gallery-lightbox { width:min(1200px,95vw); max-width:95vw; max-height:94vh; padding:50px 55px 22px; background:#021e2c; color:#fff; border:1px solid #ffffff40; border-radius:16px; overflow:auto; }
.gallery-lightbox::backdrop { background:#00121dee; }
.gallery-lightbox figure { margin:0; }
.gallery-lightbox img { display:block; width:100%; height:min(70vh,820px); object-fit:contain; }
.gallery-lightbox figcaption { text-align:center; padding-top:16px; font-size:14px; line-height:1.5; }
.gallery-lightbox button { position:absolute; display:grid; place-items:center; border:0; background:#ffffff16; color:#fff; width:44px; height:44px; border-radius:50%; cursor:pointer; }
.gallery-lightbox button:hover { background:var(--orange); }
.gallery-close { top:8px; right:8px; font-size:32px; }
.gallery-prev,.gallery-next { top:45%; font-size:36px; }
.gallery-prev { left:5px; }
.gallery-next { right:5px; }
@media(max-width:1050px) {
  .gallery-topic-grid { gap:18px; }
  .gallery-topic { display:block; }
  .gallery-topic>svg { margin-bottom:14px; }
  .gallery-topic+.gallery-topic { padding-left:18px; }
}
@media(max-width:760px) {
  .gallery-photos { padding:30px 0; }
  .gallery-intro { font-size:15px; }
  .gallery-photo-grid { grid-template-columns:1fr 1fr; gap:13px; }
  .gallery-photo:last-child { grid-column:1/-1; width:calc(50% - 7px); justify-self:center; }
  .gallery-photo img { aspect-ratio:1.3; }
  .gallery-photo>span { font-size:11px; padding:20px 9px 9px; }
  .gallery-photo>span svg { width:17px; height:17px; }
  .gallery-videos { padding:30px 0; }
  .gallery-video-grid { grid-template-columns:1fr; gap:16px; }
  .gallery-video:last-child { width:100%; }
  .gallery-player { aspect-ratio:1.8; }
  .gallery-topic-grid { grid-template-columns:1fr; gap:25px; }
  .gallery-topic { display:flex; }
  .gallery-topic+.gallery-topic { border-left:0; border-top:1px solid #ff4e2433; padding:25px 0 0; }
  .gallery-topics { padding:30px 0; }
  .gallery-lightbox { padding:52px 44px 20px; }
  .gallery-lightbox img { height:65vh; }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-photo img,.gallery-video-start::after { transition:none; }
}
