/* Trofeo Lodigiani V1.4 — Texture di fondo: Arcate (predefinita) · Marmo · Sampietrini · Nessuna.
   Le texture sono livelli trasparenti: si fondono con il colore di ogni palette.
   Su superfici scure si usa la variante chiara, su superfici chiare quella scura (data-v13-tone). */
:root{--tex-arcate-d:url('/media/tex-arcate-dark.webp');--tex-arcate-l:url('/media/tex-arcate-light.webp');
  --tex-marmo-d:url('/media/tex-marmo-dark.webp');--tex-marmo-l:url('/media/tex-marmo-light.webp');
  --tex-samp-d:url('/media/tex-sampietrini-dark.webp');--tex-samp-l:url('/media/tex-sampietrini-light.webp');
  --meander:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='30' viewBox='0 0 26 30'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M0 1.2H26M0 28.8H26'/%3E%3Cpath d='M0 24H21V6H6V19H16V11H11'/%3E%3C/g%3E%3C/svg%3E")}

/* livello texture inserito come primo figlio delle superfici */
.v13-tex{position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:repeat;opacity:var(--tex-op,1);transition:opacity .4s}
.v13-texhost{position:relative;isolation:isolate}
html[data-texture="nessuna"] .v13-tex{display:none}
html[data-texture="arcate"] .v13-tex{background-image:var(--tex-arcate-d);background-size:360px auto;background-position:center top}
html[data-texture="arcate"] [data-v13-tone="light"] > .v13-tex{background-image:var(--tex-arcate-l)}
html[data-texture="marmo"] .v13-tex{background-image:var(--tex-marmo-d);background-size:1400px auto;background-position:center}
html[data-texture="marmo"] [data-v13-tone="light"] > .v13-tex{background-image:var(--tex-marmo-l)}
html[data-texture="sampietrini"] .v13-tex{background-image:var(--tex-samp-d);background-size:300px auto}
html[data-texture="sampietrini"] [data-v13-tone="light"] > .v13-tex{background-image:var(--tex-samp-l)}
@media(max-width:640px){html[data-texture="arcate"] .v13-tex{background-size:250px auto}html[data-texture="sampietrini"] .v13-tex{background-size:220px auto}}
/* le texture non devono rubare leggibilità: sfuma dove c'è il testo principale */
.v13-texhost > .v13-tex{-webkit-mask:linear-gradient(180deg,#000 0%,#000c 45%,#0007 100%);mask:linear-gradient(180deg,#000 0%,#000c 45%,#0007 100%)}
.v13-motto > .v13-tex,.app-shell .scoreboard > .v13-tex{-webkit-mask:radial-gradient(120% 90% at 50% 50%,#0006 20%,#000 75%);mask:radial-gradient(120% 90% at 50% 50%,#0006 20%,#000 75%)}
[data-v13-tone="light"] > .v13-tex{--tex-op:.7}

/* fondo pagina: nessuna texture (scelta del cliente: arcate solo nei punti chiave) */

/* greca d'oro (come le locandine): fascia con doppio filetto e chiave continua, che scorre lentamente */
:root{--meander:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M0 1.5H28M0 4H28M0 26.5H28M0 24H28' stroke-width='1.1'/%3E%3Cpath d='M0 20.5H23.5V7.5H6.5V17H17V11.5H11.5V14'/%3E%3C/g%3E%3C/svg%3E")}
.v13-meander{display:block;height:28px;background:var(--v13-band,#0f1b35);box-shadow:0 1px 0 #0003,0 -1px 0 #0003;overflow:hidden}
.v13-meander::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--v13-gold-a,#b98d2e),var(--v13-gold-b,#f0d38a) 50%,var(--v13-gold-a,#b98d2e));background-size:420px 100%;
  -webkit-mask:var(--meander) repeat-x 0 0/28px 28px;mask:var(--meander) repeat-x 0 0/28px 28px}
.v13-meander{position:relative}
html{--v13-band:var(--c-deep);--v13-gold-a:#b98d2e;--v13-gold-b:#f3d98f}
html[data-theme="blue"]{--v13-band:#0a2a4e;--v13-gold-a:#c9a24a;--v13-gold-b:#f3dd9c}
html[data-theme="red"]{--v13-band:#1f2226;--v13-gold-a:#c39a42;--v13-gold-b:#f0d38a}
html[data-theme="violet"]{--v13-band:#211837;--v13-gold-a:#c2a66a;--v13-gold-b:#f1e2bb}
html[data-theme="marble"]{--v13-band:#ebe5da;--v13-gold-a:#a67c22;--v13-gold-b:#d9b563}
.v13-meander--edge{position:absolute;left:0;right:0;z-index:5;pointer-events:none}
.v13-meander--top{top:0}.v13-meander--bottom{bottom:0}
html[data-meander="off"] .v13-meander{display:none}
@media(prefers-reduced-motion:no-preference){
  .v13-meander::before{animation:v13-meander 14s linear infinite,v13-gleam 7s ease-in-out infinite}
  .v13-meander.rev::before{animation-direction:reverse,normal}
}
@keyframes v13-meander{to{-webkit-mask-position:280px 0;mask-position:280px 0}}
@keyframes v13-gleam{0%,100%{background-position:0 0}50%{background-position:420px 0}}
@media(max-width:640px){.v13-meander{height:22px}.v13-meander::before{-webkit-mask-size:22px 22px;mask-size:22px 22px}@keyframes v13-meander{to{-webkit-mask-position:220px 0;mask-position:220px 0}}}
/* spazio per la greca */
.v13-has-meander-top{padding-top:calc(18px + var(--v13-pt,0px))}
footer.v13-texhost{padding-top:6px}
footer.v13-texhost > .v13-tex{--tex-op:.45}
.v13-texsw{background-color:#0f1b35;background-size:160px auto!important;background-position:center top!important}
