/* ==========================================================================
   Fondimpresa – Login chooser
   Unico file CSS
   - Titillium Web locale (TTF)
   - Layout full page (no scrollbar laterale)
   - Header / Main / Footer
   - Icone Bootstrap Italia via SVG sprite
   ========================================================================== */


/* ==========================================================================
   FONT: Titillium Web (Bootstrap Italia)
   File .ttf locali
   ========================================================================== */

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/TitilliumWeb-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/TitilliumWeb-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Titillium Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/TitilliumWeb-Italic.ttf") format("truetype");
}


/* ==========================================================================
   RESET + BASE
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden; /* evita scrollbar laterale */
}

body {
  background: #ffffff;
  padding: 5px;
  font-size: 0.9em;

  /* base sistema, Titillium lo usiamo nel blocco centrale */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sticky footer */
body.fi-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ==========================================================================
   VARIABILI TEMA (colori screenshot)
   ========================================================================== */

:root {
  --fi-teal-dark: #205258;
  --fi-teal: #2B727A;
  --fi-border: #000000;

  --card-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);

  --btn-bg: #0066cc;
  --btn-bg-hover: #003366;
}


/* ==========================================================================
   STRUTTURA: HEADER / MAIN / FOOTER
   ========================================================================== */

.login-pf-page-header,
.login-pf-page,
.login-pf-page-footer {
  width: 100%;
  border: 2px solid var(--fi-border);
  border-radius: 6px;
}

/* HEADER */
.login-pf-page-header {
  background: var(--fi-teal-dark);
  margin: 10px 0;
  padding: 5px;
}

/* FOOTER */
.login-pf-page-footer {
  background: var(--fi-teal-dark);
  margin: 10px 0;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 13px;
}

/* MAIN (elastico) */
.login-pf-page {
  background: var(--fi-teal);
  flex: 1;
  padding: 20px 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   HEADER CONTENT
   ========================================================================== */

.logo-container {
  display: flex;
  align-items: center;
  padding: 8px 16px;
}

.logo-image {
  width: 54px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
}

.company-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
}

.company-slogan {
  font-size: 0.8rem;
  color: #ffffff;
}


/* ==========================================================================
   CARD ESTERNA
   ========================================================================== */

.card-pf {
  width: min(980px, 100%);
  background: #ffffff;
  border: 2px solid var(--fi-border);
  border-radius: 6px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}


/* ==========================================================================
   GRIGLIA ACCESSI + CARD INTERNE
   (FONT BOOTSTRAP ITALIA)
   ========================================================================== */

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* FE unico */
  font-family: "Titillium Web", Helvetica, Arial, sans-serif;
}

.access-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.access-desc {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #5a6b6d;
  max-width: 44ch;
}


/* ==========================================================================
   BOTTONI (stesso stile per SPID / LDAP)
   ========================================================================== */

.italia-it-button {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: 220px;

  border-radius: 6px;
  border: none;
  cursor: pointer;

  background-color: var(--btn-bg);
  color: #ffffff;

  font-family: "Titillium Web", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.italia-it-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 0.8em;
  border-right: rgba(255, 255, 255, 0.15) 1px solid;
}

.italia-it-button-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1em;
  font-size: 1.05em;
}

.access-card .italia-it-button {
  margin-top: auto;
}

/* Hover / focus */
.italia-it-button:hover {
  background-color: var(--btn-bg-hover);
}

.italia-it-button:focus {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}


/* ==========================================================================
   ICONE BOOTSTRAP ITALIA (SVG sprite)
   ========================================================================== */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 820px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}
