﻿@charset "utf-8";
/* Spostamenti gare, fase 1: stessa grafica di spostamenti.csi.milano.it (css/layout.css del sito
   PHP, letto il 19/11/2026), mobile first. Le immagini (logo e icone dei pulsanti) sono quelle del
   sito attuale, in images/. */

html, body { margin: 0; padding: 0; }
body { font-family: 'PT Sans', Arial, Helvetica, sans-serif; background-color: #0A58A9; color: #333; }
[hidden] { display: none !important; }
input:focus, textarea:focus, select:focus { outline: 0 !important; }
.clearfix { clear: both; }

#page-container { clear: both; width: auto; height: auto; }
header { position: relative; width: auto; height: auto; background-color: #0A58A9; padding: 4%; }
header #logo-csi { width: 100%; height: auto; display: block; }
header #btn-logout { position: absolute; right: 4%; bottom: 8px; width: auto; margin: 0; }
#content-wrp { clear: both; padding: 4%; background-color: #FFF; }
footer { clear: both; width: auto; height: auto; padding: 4%; color: #FFF; background-color: #0A58A9; }
footer p { width: 100%; font-size: 1em; margin: 0 0 .6em; }
footer p:last-child { font-size: 0.9em; }
footer p span { white-space: nowrap; }
footer p a { color: #FFF; white-space: nowrap; }

h1 { font-size: 1.6em; margin: 0 0 .5em; }
#content h2, #content_spostamenti h2 { margin-bottom: 3%; padding-bottom: 0.3em; font-size: 1.4em; line-height: 1em; color: #0A58A9; }
#content_spostamenti h2.title-section { border-bottom: 2px solid #0A58A9; margin: 0 auto 1% auto; max-width: 900px; }

/* campi */
input { margin-bottom: 0.8em; padding: 0.4em 0.8em; border: 1px solid #CCC; border-radius: 100em; box-sizing: border-box; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 1em; color: #666; }
input.not-editable-field, input.not-editable-field:hover, input.not-editable-field:focus { border: none; outline: none; box-shadow: none; background: transparent; }
select, textarea { width: 100%; padding: 0.4em 0.8em; margin-bottom: 0.8em; box-sizing: border-box; border: 1px solid #ccc; color: #666; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 1em; box-shadow: 0 1px 0 1px rgba(0,0,0,.04); background-color: #fff; }
select { min-width: 180px; border-radius: 2em; -moz-appearance: none; -webkit-appearance: none; appearance: none; padding-right: 2em; text-overflow: ellipsis;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230A58A9%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat; background-position: right .7em top 50%; background-size: .65em auto; }
select:hover { border-color: #888; }
select:focus { border-color: #aaa; box-shadow: 2px 2px 6px -2px rgba(59, 153, 252, .5); color: #222; }
textarea { height: 6em; border-radius: 10px; }

fieldset { margin: 30px auto 0 auto; max-width: 900px; border: 1px solid #c0c0c0; padding: 1em; box-sizing: border-box; border-radius: 20px; }
.fieldset-btn { margin: 0 auto 30px auto; text-align: right; max-width: 920px; padding-top: 30px; }
legend { padding: 0 0.5em; margin-bottom: 1em; font-size: 1.2em; line-height: 1em; color: #0A58A9; border: none; width: auto; }
.message { color: #D80000; margin: 0; padding: 0; }
.errors-form { clear: both; width: auto; color: #D80000; line-height: 1em; font-style: italic; border: 1px solid #F59696; background-color: #FFE1E1; border-radius: 1.5em; padding: 3% 6%; margin-top: 10px; }
.more-content { overflow: hidden; transition: max-height ease-in-out 300ms, opacity 300ms; max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.more-content.aperto { max-height: 800px; opacity: 1; padding: 1em; border-width: 1px; }
.note-asterischi { max-width: 900px; margin: 10px auto 0; font-size: .85em; color: #7F7F7F; font-style: italic; }

/* pulsanti */
.btn { display: inline-block; width: 40%; border-radius: 100em; border: 0; text-align: left; font-size: 0.9em; color: #FFF; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-weight: 700; text-transform: uppercase; margin: 0 0.8em 1em 0; transition: transform 0.2s, opacity 0.2s; white-space: nowrap; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.btn:hover { opacity: 0.7; }
.btn.cancel { background: #999 url(../images/btn_cancel.png) no-repeat right center; padding: 0.5em 2em 0.5em 0.7em; }
.btn.cancel:hover { opacity: 1; color: #fff; }
.btn.go { background: #0A58A9 url(../images/btn_go.png) no-repeat right center; padding: 0.5em 3em 0.5em 0.7em; }
.btn.go:hover { background-color: #094079; opacity: 1; }
.btn.logout { width: auto; background: #F3912D url(../images/btn_cancel.png) no-repeat right center; padding: 0.5em 4em 0.5em 0.7em; }
.btn.modify { width: auto; background: #0A58A9 url(../images/btn_modify.png) no-repeat right center; padding: 0.5em 4em 0.5em 0.7em; }
.btn.modify:hover { background-color: #094079; opacity: 1; }
.btn.piccolo { width: auto; font-size: .8em; }
.btn:disabled { opacity: .5; cursor: default; }
.link-btn { background: transparent; color: #0A58A9; border: 0; padding: .4em 0; cursor: pointer; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 1em; text-decoration: underline; }
.link-btn:hover { color: #094079; }

/* login */
#content.page-login { width: 100%; margin: 0 auto; max-width: 500px; }
#content.page-login form { padding: 20px 0; margin: 20px 0; }
#content.page-login label { font-weight: 700; color: #0A58A9; font-size: 1em; line-height: 1.7em; }
#content.page-login input:not(.btn) { width: auto; flex: 1 1 auto; margin-bottom: 0; transition: all 0.3s cubic-bezier(.25,.8,.25,1); }
#content.page-login input:not(.btn):hover { box-shadow: 0 2px 2px rgba(0,0,0,0.25); }
#content.page-login input:not(.btn):focus { border-color: rgb(108, 187, 247); box-shadow: 0 1px 1px rgba(0,0,0,0.25); }
#content.page-login .field-group { margin-bottom: 8px; }
#content.page-login .field-group, #content.page-login .button-wrp { display: flex; flex-direction: column; flex-wrap: wrap; }
#content.page-login .button-wrp { margin-top: 40px; }
#content.page-login .button-wrp .btn { min-width: 120px; margin: 0 0 8px 0; }

/* riquadro della gara */
.info-incontro { width: 100%; margin: 30px auto 50px; max-width: 500px; background-color: #edf3f9; border: 1px solid #0A58A9; border-radius: 20px; overflow: hidden; box-sizing: border-box; }
#content_spostamenti .info-incontro .title-section { margin: 0; padding: 10px 20px; border: none; display: flex; justify-content: space-between; align-items: center; background-color: #0A58A9; color: #fff; font-size: 1.2em; }
.info-incontro .title-section .codice-gara { font-size: .6em; text-align: right; font-style: italic; font-weight: 400; }
.info-incontro .content-section { padding: 10px 20px; }
.info-incontro .content-section p:first-of-type { margin-top: 0; }
.info-incontro .content-section p:last-of-type { margin-bottom: 0; }
.info-incontro .content-section p.team { font-size: 1.3em; text-align: center; position: relative; margin: 20px 0; }
.info-incontro .content-section p.team > span { position: relative; background-color: #edf3f9; z-index: 1; }
.info-incontro .content-section p.team > span em { color: #0A58A9; text-transform: uppercase; margin: 0 10px; font-style: italic; font-weight: 700; }
.info-incontro .content-section p.team > span strong { display: block; font-weight: 400; }
.info-incontro .content-section p.team:before { content: ''; display: block; position: absolute; width: 100%; height: 1px; border-bottom: 1px solid #0A58A9; z-index: 0; top: 50%; left: 0; transform: translateY(-50%); }

/* moduli */
.page-spostamenti section, .page-segreteria section { margin-bottom: 40px; }
.stepCausale textarea { max-width: 900px; }
.label-a { display: block; width: 100%; font-weight: 700; color: #0A58A9; font-size: 1.1em; line-height: 1.7em; }
.form-row + .form-row { margin-top: 15px; }
.form-row { display: flex; flex-wrap: wrap; flex-direction: column; margin-right: -10px; margin-left: -10px; align-items: flex-end; }
.form-row > .col { padding-right: 10px; padding-left: 10px; flex: 1 1 auto; position: relative; box-sizing: border-box; width: 100%; }
.form-row input:not([type="checkbox"]):not([type="button"]):not(.btn), .form-row select, .form-row textarea { width: 100%; }
.form-row.campo input { text-overflow: ellipsis; margin: 0; }
.form-row > .col .fromTeam { position: absolute; bottom: -0.8em; right: 2em; font-size: .7em; font-style: italic; color: #7F7F7F; }
.form-row > .right-cta { text-align: right; }
.form-row .agreementFlag { display: flex; }
.form-row .agreementFlag input[type="checkbox"] { margin: 5px 10px 5px 0; align-self: flex-start; flex: 0 0 auto; }
.form-row .agreementFlag label { color: #333; }
.ricerca-campo { margin: 10px 0; }
.ricerca-campo input[type="text"] { width: 100%; }
.ricerca-campo .suggerimento { font-size: .85em; font-style: italic; color: #7F7F7F; }
.elenco-campi { list-style: none; padding: 0; margin: 0 0 .8em; max-height: 240px; overflow-y: auto; font-size: .9em; }
.elenco-campi li { padding: 8px; cursor: pointer; border-bottom: 1px solid #eee; }
.elenco-campi li:hover, .elenco-campi li:focus { background: #a8a8a8; color: #fff; }
#contattaSegreteriaButton { margin-top: 35px; width: 250px; background-image: none; text-align: center; padding: 0; line-height: 45px; font-size: 17px; }

.section-intro { clear: both; width: 100%; max-width: 900px; margin: 30px auto; color: #666; }
.section-intro strong { color: #0A58A9; }
.esito { color: #333; font-size: 1.1em; }

/* contatta la segreteria */
.spostamento-gara h2 { margin: 0 auto 60px; font-size: 28px; background-color: #0A58A9; color: #fff; padding: 6px 60px; position: relative; text-transform: uppercase; text-align: center; font-weight: 700; box-sizing: border-box; }
.spostamento-gara h2:before, .spostamento-gara h2:after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); background: url(../images/logo-csi-small.png) no-repeat 0 0; width: 35px; height: 40px; display: block; }
.spostamento-gara h2:before { left: 2%; }
.spostamento-gara h2:after { right: 2%; }
.spostamento-gara h3 { font-weight: 700; color: #0A58A9; font-size: 1.2em; border: 2px solid #ccc; background-color: #f1f1f1; padding: 10px; margin: 40px auto; display: block; width: fit-content; text-transform: uppercase; text-align: center; }

/* finestra degli errori */
.overlayer-bkg { position: fixed; z-index: 400; inset: 0; background: rgba(0,0,0,.6); cursor: pointer; }
.overlayer-wrp { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70vw; max-width: 700px; max-height: 85vh; box-sizing: border-box; padding: 35px; color: #7F7F7F; background-color: #FFF; z-index: 500; font-size: 20px; text-align: center; }
.overlayer-wrp h3 { margin: 0 0 10px; font-size: 24px; font-weight: 400; line-height: normal; color: #0A58A9; }
.overlayer-wrp .overlayer-body { overflow-y: auto; max-height: 45vh; padding: 15px; }
.overlayer-wrp p { margin: 0; font-size: 15px; color: #666; }
.overlayer-wrp .error { color: red; }
.overlayer-wrp .small-text { font-size: 13px; line-height: 1.2; }
.overlayer-wrp a.overlayer-close { position: absolute; top: -13px; right: -13px; width: 26px; height: 26px; background: transparent url(../images/overlayer_cancel.png) no-repeat top right; cursor: pointer; }
.overlayer-wrp-btn { display: flex; flex-flow: row wrap; justify-content: center; gap: 10px; margin-top: 35px; }
.overlayer-wrp .btn { flex: 0 0 100%; max-width: 200px; color: #fff; background-image: none; text-align: center; padding: 0; line-height: 45px; font-size: 17px; margin: 0; }
.overlayer-wrp .btn:hover { opacity: 1; background-color: #094079; }
.overlayer-wrp button.overlayer-close { background-color: #a21212; }
.overlayer-wrp button.overlayer-close:hover { background-color: #8e0e0e; }

/* attesa */
.loading { position: fixed; z-index: 999; height: 2em; width: 2em; margin: auto; inset: 0; font: 0/0 a; color: transparent; }
.loading:before { content: ''; display: block; position: fixed; inset: 0; background-color: rgba(0,0,0,0.3); }
.loading:after { content: ''; display: block; font-size: 10px; width: 1em; height: 1em; margin-top: -0.5em; animation: spinner 1500ms infinite linear; border-radius: 0.5em;
  box-shadow: rgba(0,0,0,.75) 1.5em 0 0 0, rgba(0,0,0,.75) 1.1em 1.1em 0 0, rgba(0,0,0,.75) 0 1.5em 0 0, rgba(0,0,0,.75) -1.1em 1.1em 0 0, rgba(0,0,0,.75) -1.5em 0 0 0, rgba(0,0,0,.75) -1.1em -1.1em 0 0, rgba(0,0,0,.75) 0 -1.5em 0 0, rgba(0,0,0,.75) 1.1em -1.1em 0 0; }
@keyframes spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* telefono in orizzontale */
@media only screen and (min-width: 480px) {
    header, #content-wrp, footer { padding: 3%; }
    header #logo-csi { width: 80%; }
    #content.page-login .field-group, #content.page-login .button-wrp { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; }
    #content.page-login .button-wrp .btn { max-width: 200px; flex: 0 0 35%; }
    #content.page-login label { flex-basis: 30%; }
    .info-incontro .content-section p.team > span strong { display: inline; }
    .form-row { flex-direction: row; flex-wrap: nowrap; }
    .form-row.campo > .col { flex: 0 0 20%; }
    .form-row.campo > .col:nth-child(2) { flex: 2; }
}
/* tablet */
@media only screen and (min-width: 768px) {
    textarea { min-width: 350px; }
    header, #content-wrp, footer { padding: 2%; }
    header #logo-csi { width: auto; max-width: 100%; }
    .spostamento-gara h2 { font-size: 40px; }
}
@media screen and (min-width: 992px) {
    .spostamento-gara h2 { width: 65%; font-size: 50px; }
}
@media only screen and (min-width: 1024px) {
    #content h2 { font-size: 1.6em; }
    .errors-form { border-radius: 100em; padding: 1% 2%; }
}
