/* Content compositions, scoped to the immersive site. */
.home-immersive .plain-link { color:#315f37; font-size:.9rem; text-underline-offset:5px; }
.about-immersive .personal-photo img { width:100%; height:auto; object-fit:contain; background:none; border-radius:0; }
.home-immersive .personal-photo img { object-fit:cover; object-position:center top; background:none; border-radius:0; }
.about-immersive .personal-photo { width:100%; max-width:none; justify-self:center; }
.about-immersive #missione .scene-copy>p:not(.eyebrow) { max-width:640px; }
.home-immersive .story-steps { gap:clamp(.6rem,1.6vw,1.8rem); }
.home-immersive .story-steps button { white-space:nowrap; }
.home-reviews { background:#203e32; color:#f6f7ef; }
.review-copy { max-width:800px; margin:0 auto; text-align:center; }
.home-reviews .eyebrow { color:#bed2b7; }
.review-copy h2 { color:#f6f7ef; font-size:clamp(3rem,6vw,6rem); letter-spacing:-.045em; margin-bottom:1.7rem; }
.home-reviews em { color:#c9ddb8; }
.home-reviews .review-copy>p:not(.eyebrow) { font-size:1.05rem; line-height:1.9; color:#e0e8db; }
.home-reviews .btn { background:#d5e6c5; border-color:#d5e6c5; color:#203e32; margin:1.3rem 0; }
.home-reviews .btn:hover { background:#fff; }
.home-reviews .review-copy>.review-source { font-size:.78rem; color:#c1d2bd; }
.home-journal { background:#eeeee5; }
.home-section-heading { display:flex; justify-content:space-between; align-items:end; gap:2rem; margin-bottom:1.6rem; }
.home-section-heading h2 { font-size:clamp(1.8rem,2.8vw,3rem); line-height:1.2; letter-spacing:-.04em; margin:0; }
.home-section-heading .eyebrow { margin-bottom:.8rem; }
.home-section-heading>a { flex-shrink:0; }
.home-article-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.7rem; }
.home-article { display:flex; flex-direction:column; text-decoration:none; color:#203e32; min-width:0; border-bottom:1px solid #b5c3ac; }
.home-article>img,.label-preview { height:clamp(200px,calc(100svh - 460px),380px); width:100%; }
.home-article>img { display:block; object-fit:cover; object-position:center; }
.home-article[href="articoli/convegno-aip.html"]>img { object-position:50% 44%; }
.home-article[href="articoli/hawaii.html"]>img { object-position:50% 45%; }
.home-article>div:not(.label-preview) { padding:1rem 0; flex:1; display:flex; flex-direction:column; }
.home-article span { font-size:.7rem; }
.home-article h3 { font-size:clamp(1rem,1.3vw,1.3rem); line-height:1.5; color:#203e32; margin:.5rem 0 .8rem; }
.home-article .article-read { margin-top:auto; color:#315f37; }
.home-article:hover h3 { text-decoration:underline; text-underline-offset:4px; }
.label-preview { background:#dce6d2; padding:1rem 1.3rem; display:flex; flex-direction:column; justify-content:center; }
.label-preview>span { margin-bottom:.5rem; }
.label-preview strong { font-family:Georgia,serif; font-weight:400; font-size:clamp(1.3rem,2vw,2rem); line-height:1.1; }
.home-contact-details { border-left:1px solid #b5c3ac; padding-left:3rem; }
.home-contact-details h3 { font-size:2rem; }
.home-contact-details address { line-height:1.8; margin-bottom:1.5rem; }
.home-contact-details>a { display:block; color:#315f37; padding:.5rem 0; overflow-wrap:anywhere; }
.home-contact-details .plain-link { margin-top:1.2rem; }
.certificate-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; }
.certificate-card { color:#294c34; text-decoration:none; display:flex; flex-direction:column; min-width:0; }
.certificate-card img { width:100%; height:auto; aspect-ratio:1.414; object-fit:contain; background:white; box-shadow:0 5px 16px #1c382013; }
.certificate-card>span { font-size:.75rem; line-height:1.5; margin-top:.65rem; }
.certificate-card small { font-size:.65rem; color:#526a53; margin-top:.35rem; }
.certificate-card:hover>span { text-decoration:underline; }
.certificate-dialog { border:0; border-radius:5px; width:min(1100px,94vw); max-height:92svh; padding:1.2rem; color:#203e32; background:#fafbf8; }
.certificate-dialog::backdrop { background:#10241ce0; }
.certificate-dialog-header { display:flex; justify-content:space-between; align-items:start; gap:1rem; margin-bottom:1rem; }
.certificate-dialog-header h2 { font-size:1rem; line-height:1.5; margin:0; }
.certificate-dialog-header button { flex-shrink:0; background:#203e32; color:white; border:0; border-radius:3px; padding:.5rem .8rem; }
.certificate-dialog>img { display:block; width:100%; height:auto; max-height:70svh; object-fit:contain; }
.certificate-original { display:inline-block; color:#315f37; font-size:.8rem; margin-top:1rem; }
html:has(.certificate-dialog[open]) { overflow:hidden; }
.assessment-sources { padding:1.3rem; margin:1.5rem 0; background:#edf2e8; }
.assessment-sources h3 { font-size:1rem; }
.assessment-sources li { font-size:.85rem; line-height:1.7; margin:.6rem 0; }
.assessment-sources a { color:#315f37; }
.journal-hawaii .journal-diptych { align-items:start; }
.journal-hawaii .journal-diptych .journal-photo img { width:100%; height:auto; aspect-ratio:3/4; max-height:none; object-fit:contain; object-position:center bottom; }
.journal-hawaii .journal-photo figcaption { line-height:1.7; }
.article-hawaii .event-reading { display:block; }
.article-hawaii .event-reading .reading-body { max-width:76ch; margin:0 auto 2.5rem; }
.article-hawaii .reading-body .event-section-title { margin-top:0; }
.article-hawaii .hawaii-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; max-width:900px; margin:0 auto; padding-top:2rem; border-top:1px solid #cbd6c5; }
.article-hawaii .hawaii-gallery figure { min-width:0; margin:0; }
.article-hawaii .hawaii-gallery img { width:100%; height:auto; max-height:none; object-fit:contain; background:none; }
/* Native article video component: local files, explicit playback, no autoplay. */
.article-video { margin:2.5rem 0; }
.article-video video { display:block; width:100%; max-height:65svh; background:#183b2e; }
.article-video summary { cursor:pointer; color:#315f37; margin-top:1rem; }
.contact-immersive .location-pair { grid-template-columns:1fr; max-width:800px; }
.privacy-immersive main { overflow-wrap:anywhere; }
@media (min-width:992px) and (max-height:780px) {
  .about-immersive #missione .scene-copy h2 { font-size:2rem; margin-bottom:1rem; }
  .about-immersive #missione .scene-copy>p:not(.eyebrow) { font-size:.9rem; line-height:1.7; }
  .home-journal .home-section-heading h2 { font-size:1.8rem; }
  .home-article h3 { font-size:.95rem; }
  .home-article>div:not(.label-preview) { padding:.6rem 0; }
  .home-journal .home-section-heading { margin-bottom:1rem; }
  .certificate-card>span { font-size:.68rem; }
  .certificate-grid { gap:.8rem; }
}
@media (max-width:1199.98px) {
  .home-immersive .story-steps button span { display:none; }
}
@media (max-width:991.98px) {
  .home-article-grid { gap:1.2rem; }
  .home-section-heading { display:block; }
  .home-section-heading>a { display:inline-block; margin-top:1rem; }
  .home-contact-details { padding:2rem 0 0; border-left:0; border-top:1px solid #b5c3ac; }
  .certificate-grid { max-width:650px; }
  .home-immersive .personal-photo img { height:clamp(260px,65vw,440px); max-height:none; }
  .about-immersive .personal-photo { width:min(100%,640px); }
  .journal-hawaii .journal-diptych .journal-photo img { height:auto; aspect-ratio:3/4; }
}
@media (max-width:575.98px) {
  .home-article-grid { grid-template-columns:1fr; gap:2rem; }
  .home-article>img,.label-preview { height:260px; }
  .home-article h3 { font-size:1.15rem; }
  .home-article span { font-size:.8rem; }
  .label-preview strong { font-size:2rem; }
  .certificate-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .certificate-card>span { font-size:.8rem; }
  .article-hawaii .hawaii-gallery { grid-template-columns:1fr; }
  .article-hawaii .hawaii-gallery img { height:auto; }
}
