/* =====================================================================
   Identita' visiva ASP di Cosenza - regole CONDIVISE (plugin "landings")
   Usate da: modulo pubblico GLPI (asp-form.css + asp-form.js) e Sportello Digitale.
   Misure identiche alla pagina di login (CSS personalizzato dell'entita').
   ===================================================================== */

/* Barra "Regione Calabria" */
.asp-topbar {
    display: block;
    background: #01274d;
    color: #fff;
    font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 48px;
    padding-inline: max(16px, calc((100vw - 1296px) / 2));
}

/* Fascia blu con loghi e intestazione (immagine 800x128) */
.asp-band {
    box-sizing: content-box; /* come il login: 128px + 1px di bordo */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    background: #044a8f;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.asp-band a { display: block; }
.asp-band img {
    display: block;
    width: 800px;
    max-width: calc(100vw - 32px);
    height: auto;
}

/* Footer (modulo pubblico: inserito da asp-form.js; Sportello: incluso nel template) */
.asp-footer {
    flex: 0 0 auto;
    margin-top: 48px;
    background: #03313a;
    color: #fff;
    font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
}
.asp-footer .asp-wrap {
    padding-inline: max(16px, calc((100vw - 1296px) / 2));
}
/* Misure identiche al login: fascia logo 150px (immagine 500x100 a 22px dal bordo),
   blocco contatti alto 260px con padding 16px sopra e 32px sotto */
.asp-footer__brand { box-sizing: border-box; height: 150px; padding-top: 22px; }
.asp-footer__brand img { display: block; width: 500px; max-width: 100%; height: auto; }
.asp-footer__contacts { box-sizing: border-box; min-height: 260px; padding-block: 16px 32px; }
.asp-footer__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}
.asp-footer__text,
.asp-footer__text * {
    color: #fff !important;
    background: transparent !important;
    font-family: inherit !important;
    text-align: left !important;
}
.asp-footer__text p { margin: 0; font-size: 16px; line-height: 24px; }
.asp-footer__text a { text-decoration: none; }
.asp-footer__text a:hover,
.asp-footer__text a:focus { text-decoration: underline; }

@media (max-width: 840px) {
    /* altezza arrotondata al pixel intero (round): il contenuto sotto resta su coordinate intere = testo nitido */
    .asp-band { box-sizing: border-box; height: calc((100vw - 32px) * 0.16 + 25px); height: round(down, calc((100vw - 32px) * 0.16 + 25px), 1px); padding: 0; }
}
@media (max-width: 540px) {
    .asp-footer__brand { height: calc((100vw - 32px) * 0.2 + 44px); }
    .asp-footer__contacts { min-height: 300px; }
}

/* Sportello Digitale: il footer segue direttamente una sezione colorata -> nessun margine sopra
   (sul login e sul modulo il margine di 48px separa il riquadro bianco dal footer) */
.sd-footer .asp-footer { margin-top: 0; }

/* Link "Informativa privacy" nel footer (Sportello e moduli pubblici) */
.asp-footer__links { margin: 16px 0 0; font-size: 16px; line-height: 24px; }
.asp-footer__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.asp-footer__links a:hover, .asp-footer__links a:focus { color: #cfe0ff; }
