/* TrattoCAD - selettore della lingua nel piede e caratteri per le lingue non latine (generato da web/i18n) */
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0 0 1rem; width: 100%; font-size: .9rem; }
.langs .ico { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; }
.langs a { color: inherit; opacity: .75; text-decoration: none; }
.langs a:hover, .langs a:focus-visible { opacity: 1; text-decoration: underline; }
.langs a[aria-current="true"] { opacity: 1; font-weight: 600; }
:lang(ja) body, :lang(ja) button, :lang(ja) input { font-family: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(ko) body, :lang(ko) button, :lang(ko) input { font-family: "Archivo", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }

/* menu del telefono: l'intestazione (con backdrop-filter) racchiude gli elementi fissi, quindi il pannello
   prende l'altezza dallo schermo e non dai bordi (prima restava alto pochi pixel) */
@media (max-width: 1080px) {
  .drawer { bottom: auto; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); }
}

/* menu della lingua nella testata */
.langmenu { position: relative; margin-left: 4px; }
.langmenu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink, #0A0E15); user-select: none; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary:hover, .langmenu[open] > summary { background: rgba(10, 14, 21, .06); }
.langmenu > summary .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.langmenu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid var(--line, #E3E7ED); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 14, 21, .14); padding: 6px; min-width: 190px; max-height: 70vh; overflow-y: auto; }
.langmenu-list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 15px; }
.langmenu-list a span { opacity: .55; font-size: 13px; text-transform: uppercase; }
.langmenu-list a:hover, .langmenu-list a:focus-visible { background: rgba(10, 14, 21, .06); }
.langmenu-list a[aria-current="page"] { font-weight: 650; color: #E3271E; }
@media (max-width: 1080px) { .langmenu { margin-left: 0; } }

/* invito a passare alla lingua del browser (sotto il menu del telefono, che lo copre quando e' aperto) */
.langbar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 48; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: #0A0E15; color: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.langbar p { margin: 0; flex: 1; font-size: 15px; line-height: 1.35; }
.langbar .btn { white-space: nowrap; }
.langbar-x { background: none; border: 0; color: #fff; opacity: .7; font-size: 18px; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.langbar-x:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
@media (max-width: 480px) { .langbar { flex-wrap: wrap; } .langbar p { flex-basis: calc(100% - 48px); } .langbar .btn { flex: 1; text-align: center; } }
