/* =========================================================
   Notartel – Recupero password
   Stili comuni a tutte le pagine (banner, header, hero, form,
   box informativi, footer). Gli stili specifici di ogni pagina
   sono nei file css dedicati.
   ========================================================= */

:root {
  --nt-navy: #014482;
  --nt-teal: #008490;
  --nt-teal-dark: #006f79;
  --nt-grad-start: #004481;
  --nt-grad-end: #008490;
  --nt-text: #2b2b2b;
  --nt-muted: #5a5a5a;
  --nt-border: #a7b1bb;
  --nt-box: #e7f2f4;
  --nt-red: #c92a2a;
  --nt-red-bg: #fdecec;
  --nt-footer: #e9edf0;
  --nt-font: "Titillium Web", "Segoe UI", Arial, sans-serif;
  --nt-font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nt-font-btn: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--nt-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--nt-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--nt-teal); }

/* ---------- Banner avviso password ---------- */
.pwd-banner {
  flex: 0 0 auto;
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--nt-navy);
  font-family: var(--nt-font-ui);
  font-size: 13px;
  line-height: 1.35;
  color: var(--nt-muted);
  text-align: center;
}
.pwd-banner svg { flex: 0 0 auto; width: 18px; height: 18px; }
.pwd-banner p { margin: 0; }

/* ---------- Header con logo ---------- */
.site-header {
  flex: 0 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #fff;
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { width: 134px; height: auto; display: block; }

/* ---------- Hero (pannello sfumato + contenuto) ---------- */
.hero {
  flex: 1 0 auto;
  display: flex;
  position: relative;
  min-height: 547px;
}

.hero-aside {
  position: relative;
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
/* forma: parallelogramma inclinato con angolo in basso arrotondato */
.hero-aside::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: -60%;
  background: linear-gradient(90deg, var(--nt-grad-start) 35%, var(--nt-grad-end) 100%);
  transform-origin: 100% 0;
  transform: skewX(-11.9deg);
  border-bottom-right-radius: 115px 95px;
}
.hero-text {
  position: relative;
  padding: 40px 56px;
  max-width: 560px;
}
.hero-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 300; }
.hero-title { margin: 0 0 22px; font-size: 38px; font-weight: 600; line-height: 1.2; }
.hero-sub   { margin: 0; font-size: 16px; font-weight: 300; }

.hero-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 56px 24px 48px;
}
.panel { max-width: 400px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.breadcrumb li + li::before { content: "/"; margin: 0 2px; color: #7a7a7a; font-weight: 400; }
.breadcrumb a { color: #111; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--nt-teal); }

/* ---------- Titoli e testi ---------- */
.page-title {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nt-navy);
}
.lead {
  margin: 0 0 22px;
  font-family: var(--nt-font-ui);
  font-size: 15px;
  color: var(--nt-muted);
}
.form-error {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--nt-red);
}
.user-line {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nt-navy);
}

/* ---------- Form ---------- */
.form-group { margin: 0 0 22px; }
.form-label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-navy);
}
.form-control {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--nt-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--nt-font);
  font-size: 15px;
  color: var(--nt-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--nt-teal);
  box-shadow: 0 0 0 3px rgba(0, 132, 144, .18);
}

/* ---------- Pulsante ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--nt-teal);
  font-family: var(--nt-font-btn);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.btn:hover,
.btn:focus-visible { background: var(--nt-teal-dark); }
.btn:focus-visible { outline: 3px solid rgba(0, 132, 144, .35); outline-offset: 2px; }

/* ---------- Box informativi / avvisi ---------- */
.note {
  background: var(--nt-box);
  border-left: 3px solid var(--nt-teal);
  border-radius: 0 4px 4px 0;
}
.alert-error {
  margin: 0 0 22px;
  padding: 14px 28px;
  background: var(--nt-red-bg);
  border-left: 3px solid var(--nt-red);
  border-radius: 0 4px 4px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--nt-red);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  flex: 0 0 auto;
  background: var(--nt-footer);
  font-family: var(--nt-font-ui);
}
.footer-inner {
  max-width: 1102px;
  margin: 0 auto;
  padding: 26px 24px 20px;
}
.footer-cookie {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--nt-muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-company { margin: 0; font-size: 13px; line-height: 1.4; color: var(--nt-muted); }
.footer-company strong { display: block; font-size: 14px; color: var(--nt-navy); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-label { margin-right: 2px; font-size: 14px; font-weight: 700; color: var(--nt-navy); }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nt-navy);
  color: #fff;
  transition: background-color .15s;
}
.footer-social a:hover { background: var(--nt-teal); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-logo { margin-left: auto; line-height: 0; }
.footer-logo img { width: 114px; height: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .hero-title { font-size: 36px; }
}

@media (max-width: 900px) {
  .pwd-banner {
    justify-content: flex-start;
    min-height: 65px;
    padding: 8px 12px 8px 20px;
    text-align: left;
  }
  .hero { min-height: 0; }
  .hero-aside { display: none; }
  .hero-content { padding: 20px 12px 24px; }
  .panel { max-width: 300px; }
  .page-title { font-size: 30px; }

  .footer-inner { padding: 20px 16px 22px; }
  .footer-cookie { font-size: 12px; text-align: center; margin-bottom: 26px; }
  .footer-bottom { flex-wrap: wrap; gap: 20px 12px; }
  .footer-company { flex: 0 0 100%; }
  .footer-logo { order: 1; margin-left: 0; }
  .footer-social { order: 2; margin-left: auto; }
  .footer-logo img { width: 104px; }
}
