/* Menu a tendina delle lingue: lo usano l'app e la sezione tornei.
   Bandiere disegnate qui: le emoji delle bandiere su Windows non si vedono. */
.lingua { position: relative; flex: none; }
.lingua summary, .lingua button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; font: 800 14px Manrope, system-ui, sans-serif; color: #121A4F; cursor: pointer; }
.lingua summary { display: inline-flex; border: 1.5px solid #E1D8C3; background: #fff; list-style: none; user-select: none; }
.lingua summary::-webkit-details-marker { display: none; }
.lingua summary::after { content: ''; width: 7px; height: 7px; margin: -4px 0 0 2px; border: solid #121A4F; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lingua[open] summary { border-color: #121A4F; }
.lingua[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.lingua summary:hover { border-color: #121A4F; }
.lingua-voci { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; min-width: 100%; padding: 6px; background: #fff; border: 1.5px solid #E1D8C3; border-radius: 14px; box-shadow: 0 10px 28px rgba(18, 26, 79, .18); }
.lingua button { width: 100%; border: 0; background: transparent; }
.lingua button:hover { background: #F5EEDF; }
.lingua button[aria-pressed="true"] { background: #121A4F; color: #fff; }
.bandiera { width: 24px; height: 16px; flex: none; border-radius: 3px; background: center / 100% 100% no-repeat; box-shadow: 0 0 0 1px rgba(18, 26, 79, .18); }
.bandiera.it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='20' height='40' fill='%23009246'/%3E%3Crect x='20' y='0' width='20' height='40' fill='%23fff'/%3E%3Crect x='40' y='0' width='20' height='40' fill='%23CE2B37'/%3E%3C/svg%3E"); }
.bandiera.fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='20' height='40' fill='%23002654'/%3E%3Crect x='20' y='0' width='20' height='40' fill='%23fff'/%3E%3Crect x='40' y='0' width='20' height='40' fill='%23CE1126'/%3E%3C/svg%3E"); }
.bandiera.de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='60' height='14' fill='%23111'/%3E%3Crect x='0' y='13.33' width='60' height='14' fill='%23DD0000'/%3E%3Crect x='0' y='26.66' width='60' height='13.34' fill='%23FFCE00'/%3E%3C/svg%3E"); }
.bandiera.es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='60' height='40' fill='%23AA151B'/%3E%3Crect x='0' y='10' width='60' height='20' fill='%23F1BF00'/%3E%3C/svg%3E"); }
.bandiera.en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='60' height='40' fill='%23012169'/%3E%3Cpath d='M0 0L60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/%3E%3Cpath d='M0 0L60 40M60 0L0 40' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0V40M0 20H60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M30 0V40M0 20H60' stroke='%23C8102E' stroke-width='8'/%3E%3C/svg%3E"); }
.bandiera.el { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect x='0' y='0' width='60' height='40' fill='%23fff'/%3E%3Crect x='0' y='0.0' width='60' height='4.44' fill='%230D5EAF'/%3E%3Crect x='0' y='8.89' width='60' height='4.44' fill='%230D5EAF'/%3E%3Crect x='0' y='17.78' width='60' height='4.44' fill='%230D5EAF'/%3E%3Crect x='0' y='26.66' width='60' height='4.44' fill='%230D5EAF'/%3E%3Crect x='0' y='35.55' width='60' height='4.44' fill='%230D5EAF'/%3E%3Crect x='0' y='0' width='22.2' height='22.22' fill='%230D5EAF'/%3E%3Cpath d='M11.1 0V22.2M0 11.1H22.2' stroke='%23fff' stroke-width='4.44'/%3E%3C/svg%3E"); }
/* sul computer il menu sta in fondo alla colonna: si apre verso l'alto */
@media (min-width: 900px) { .lingua { align-self: flex-start; margin-top: auto; } .lingua-voci { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); } }
