/* Native details keeps language navigation usable without scripts. */
.navbar-header { position: relative; }
.site-language { position: relative; order: 3; flex: 0 0 auto; margin-left: 16px; font-family: "open_sansregular", sans-serif; font-size: 12px; color: #204d80; z-index: 30; }
.site-language summary { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid #d5e1eb; border-radius: 6px; background: #f5f8fb; cursor: pointer; list-style: none; line-height: 20px; }
.site-language summary::-webkit-details-marker { display: none; }
.site-language summary:hover, .site-language[open] summary { background: #eaf1f8; border-color: #4074a8; }
.site-language summary:focus-visible, .language-options a:focus-visible { outline: 2px solid #204d80; outline-offset: 3px; }
.language-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.site-language[open] .language-chevron { transform: rotate(180deg); }
.language-flag { display: inline-block; flex: 0 0 20px; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.13); overflow: hidden; }
.flag-it { background: linear-gradient(to right,#009246 0 33.333%,#fff 33.333% 66.666%,#ce2b37 66.666%); }
.flag-en { background: url('/img/flag-en.svg') center / cover; }
.language-options { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 5px; border: 1px solid #dce4eb; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(18,54,88,.14); }
.language-options a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 4px; color: #204d80; text-decoration: none; }
.language-options a:hover, .language-options a[aria-current] { background: #edf3f9; }
.language-check { margin-left: auto; font-weight: bold; }
#site-language-suggestion { position: fixed; bottom: 20px; right: max(15px,calc((100vw - 1140px)/2)); z-index: 25; padding: 10px 12px; border: 1px solid #dce4eb; border-radius: 6px; background: #fff; box-shadow: 0 5px 16px rgba(18,54,88,.12); font-size: 12px; }
#site-language-suggestion a { display: inline-block; padding: 4px; margin-left: 6px; color: #204d80; font-weight: bold; }
#site-language-suggestion button { margin-left: 10px; border: 0; background: transparent; color: #204d80; font-size: 18px; line-height: 24px; }
@media (min-width:576px) and (max-width:1199.98px) { .site-language { margin-left: 10px; } .language-current { display: none; } }
@media (max-width:575.98px) {
    .site-language { order: 1; margin: 0 8px 0 0; }
    .site-language summary { min-height: 40px; padding: 8px; gap: 5px; }
    .language-current { display: none; }
    .navbar-header .navbar-toggler { order: 2; }
    .navbar-header .navbar-collapse { order: 4; }
    #site-language-suggestion { right: 15px; left: 15px; }
}
@media (max-width:359.98px) { .navbar-header .logo { max-width: calc(100vw - 150px); height: auto; } }
@media (prefers-reduced-motion:reduce) { .language-chevron { transition: none; } }
