/*!
 * ChooseIT - additions on top of the New Age theme.
 * Language switcher, inner page header, legal documents and FAQ.
 */

/* ==========================================================================
   Language switcher
   ========================================================================== */

.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switcher .lang-option {
  padding: 6px 4px;
  color: #8a8a8a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .35s, border-color .35s;
}

.lang-switcher .lang-option:hover,
.lang-switcher .lang-option:focus {
  color: #222222;
  text-decoration: none;
}

.lang-switcher .lang-option.is-active {
  font-weight: 700;
  color: #222222;
  border-bottom-color: #fdcc52;
}

.lang-switcher .lang-sep {
  padding: 0 3px;
  color: rgba(34, 34, 34, 0.25);
}

/* Over the transparent navbar (desktop, page not scrolled) the switcher is light. */
@media (min-width: 992px) {
  .lang-switcher {
    order: 3;
    margin-left: 25px;
    margin-right: 0;
  }
  #mainNav .navbar-collapse {
    order: 2;
  }
  #mainNav .lang-switcher .lang-option {
    color: rgba(255, 255, 255, 0.65);
  }
  #mainNav .lang-switcher .lang-option:hover,
  #mainNav .lang-switcher .lang-option:focus,
  #mainNav .lang-switcher .lang-option.is-active {
    color: white;
  }
  #mainNav .lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.3);
  }
  #mainNav.navbar-shrink .lang-switcher .lang-option {
    color: #8a8a8a;
  }
  #mainNav.navbar-shrink .lang-switcher .lang-option:hover,
  #mainNav.navbar-shrink .lang-switcher .lang-option:focus,
  #mainNav.navbar-shrink .lang-switcher .lang-option.is-active {
    color: #222222;
  }
  #mainNav.navbar-shrink .lang-switcher .lang-sep {
    color: rgba(34, 34, 34, 0.25);
  }
}

/* Mobile: the switcher sits between the brand and the burger, on the white bar. */
@media (max-width: 991.98px) {
  #mainNav .navbar-toggler {
    margin-left: 0;
  }
  .lang-switcher .lang-option {
    padding: 8px 8px;
  }
}

@media (max-width: 359px) {
  .lang-switcher {
    margin-right: 6px;
    letter-spacing: 1px;
  }
}


/* The brand sits on the gradient header of the inner pages, then on the white
   bar once the navbar shrinks. */
body:not(.page-home) #mainNav .navbar-brand {
  color: #444444;
}

@media (min-width: 992px) {
  body:not(.page-home) #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.9);
  }
  body:not(.page-home) #mainNav .navbar-brand:hover,
  body:not(.page-home) #mainNav .navbar-brand:focus {
    color: white;
  }
  body:not(.page-home) #mainNav.navbar-shrink .navbar-brand {
    color: #222222;
  }
  body:not(.page-home) #mainNav.navbar-shrink .navbar-brand:hover,
  body:not(.page-home) #mainNav.navbar-shrink .navbar-brand:focus {
    color: #fdcc52;
  }
}

/* ==========================================================================
   Inner page header
   ========================================================================== */

header.page-header {
  position: relative;
  padding: 140px 0 60px;
  color: white;
  text-align: center;
  background: url("/img/bg-pattern.png"), #7b4397;
  background: url("/img/bg-pattern.png"), linear-gradient(to left, #7b4397, #dc2430);
}

header.page-header h1 {
  font-family: 'Catamaran', 'Helvetica', 'Arial', sans-serif;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: 1px;
  margin: 0 0 15px;
}

header.page-header .page-header-eyebrow {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

header.page-header .page-header-subtitle {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

header.page-header .page-header-updated {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  color: white;
  background-color: rgba(0, 0, 0, 0.18);
  border-radius: 100px;
}

@media (min-width: 768px) {
  header.page-header {
    padding: 170px 0 80px;
  }
  header.page-header h1 {
    font-size: 60px;
  }
}

/* ==========================================================================
   Document body (privacy, terms, FAQ)
   ========================================================================== */

section.doc {
  padding: 40px 0 60px;
  color: #3b3b3b;
}

@media (min-width: 768px) {
  section.doc {
    padding: 60px 0 80px;
  }
}

.doc-body {
  max-width: 760px;
}

.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.75;
}

.doc-body a {
  color: #a3357a;
  text-decoration: underline;
  word-break: break-word;
}

.doc-body a:hover,
.doc-body a:focus {
  color: #dc2430;
}

.doc-intro p {
  font-size: 19px;
  line-height: 1.7;
  color: #555;
  padding-left: 20px;
  border-left: 3px solid #fdcc52;
}

/* Reset the theme's generic `section { padding: 100px 0 }` for inner blocks. */
.doc-section {
  padding: 35px 0 0;
  scroll-margin-top: 90px;
}

.doc-section h2 {
  font-size: 26px;
  font-weight: 400;
  color: #222222;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.doc-section h3 {
  font-size: 19px;
  font-weight: 600;
  font-family: 'Muli', 'Helvetica', 'Arial', sans-serif;
  letter-spacing: 0;
  color: #7b4397;
  margin: 28px 0 10px;
}

.doc-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.doc-section li {
  margin-bottom: 8px;
}

/* Table of contents */
.doc-toc {
  position: relative;
  margin-bottom: 40px;
  padding: 25px 28px;
  background-color: #faf9fb;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 6px;
}

.doc-toc-title {
  margin: 0;
}

.doc-toc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  background: none;
  border: 0;
  cursor: pointer;
}

.doc-toc-btn:focus {
  outline: none;
  color: #7b4397;
}

.doc-toc-btn i {
  font-size: 12px;
  transition: transform .25s;
}

.doc-toc-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.doc-toc-panel {
  padding-top: 15px;
}

.doc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.doc-toc-list li {
  margin-bottom: 2px;
}

.doc-toc-list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
  text-decoration: none;
  transition: color .2s;
}

.doc-toc-list a:hover,
.doc-toc-list a:focus {
  color: #dc2430;
  text-decoration: none;
}

.doc-toc-home {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7b4397;
  text-decoration: none;
}

.doc-toc-home:hover,
.doc-toc-home:focus {
  color: #dc2430;
  text-decoration: none;
}

/* On the FAQ the questions are already the index: the sidebar is desktop only. */
@media (max-width: 991.98px) {
  .doc-aside-faq {
    display: none;
  }
}

/* From lg up the index is always open and follows the reader. */
@media (min-width: 992px) {
  .doc-toc {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .doc-toc-panel.collapse:not(.show) {
    display: block;
  }
  .doc-toc-btn {
    pointer-events: none;
    cursor: default;
  }
  .doc-toc-btn i {
    display: none;
  }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-tools {
  margin: 30px 0 10px;
  text-align: right;
}

.faq-toggle-all {
  padding: 0;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7b4397;
  background: none;
  border: 0;
  cursor: pointer;
}

.faq-toggle-all:hover {
  color: #dc2430;
}

.faq-item {
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  scroll-margin-top: 90px;
}

.faq-item:first-child {
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.faq-question {
  margin: 0;
}

.faq-question-btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: 'Catamaran', 'Helvetica', 'Arial', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: left;
  color: #222222;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}

.faq-question-btn:hover,
.faq-question-btn:focus {
  color: #dc2430;
  outline: none;
}

.faq-question-btn i {
  flex: 0 0 auto;
  margin-left: 20px;
  margin-top: 6px;
  font-size: 14px;
  color: #b9a2c4;
  transition: transform .25s;
}

.faq-question-btn[aria-expanded="true"] {
  color: #7b4397;
}

.faq-question-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 25px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.doc-contact {
  margin-top: 60px;
  padding: 30px 32px;
  background-color: #faf9fb;
  border-left: 3px solid #fdcc52;
  border-radius: 4px;
}

.doc-contact h2 {
  font-size: 22px;
  font-weight: 400;
  color: #222222;
  margin-bottom: 10px;
}

.doc-contact p {
  margin-bottom: 0;
}

/* ==========================================================================
   Cancellazione account
   ========================================================================== */

.form-card {
  max-width: 100%;
}

.doc-lead {
  font-size: 18px;
  color: #222222;
}

.form-cancellazione {
  margin: 30px 0 35px;
}

/* Il form e' l'azione principale della pagina: gli do un contenitore proprio
   invece di lasciarlo appoggiato sul fondo bianco. */
.card-azione {
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.09);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(34, 34, 34, 0.07);
}

@media (max-width: 575.98px) {
  .card-azione {
    padding: 24px 20px;
  }
}

.form-cancellazione label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.campo-email {
  position: relative;
  margin-bottom: 18px;
}

.campo-email input[type="email"] {
  display: block;
  width: 100%;
  padding: 17px 18px 17px 52px;
  font-family: 'Muli', 'Helvetica', 'Arial', sans-serif;
  font-size: 17px;
  color: #222222;
  background-color: #ffffff;
  border: 1.5px solid rgba(34, 34, 34, 0.15);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}

.campo-email input[type="email"]::placeholder {
  color: #bbbbbb;
}

.campo-email input[type="email"]:hover {
  border-color: rgba(34, 34, 34, 0.28);
}

.campo-email input[type="email"]:focus {
  outline: none;
  border-color: #7b4397;
  box-shadow: 0 0 0 4px rgba(123, 67, 151, 0.13);
}

/* L'icona sta dopo l'input nel markup, non prima: cosi' input:focus + i
   permette di accenderla al focus senza JavaScript. */
.campo-email i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #c9b6d2;
  pointer-events: none;
  transition: color .2s;
}

.campo-email input[type="email"]:focus + i {
  color: #7b4397;
}

.btn-cancellazione {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 32px;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #222222;
  background-color: #fdcc52;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(253, 204, 82, 0.45);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn-cancellazione:hover,
.btn-cancellazione:focus {
  background-color: #fcbd20;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(253, 204, 82, 0.55);
}

.btn-cancellazione:active {
  transform: translateY(0);
}

.btn-cancellazione i {
  font-size: 12px;
  transition: transform .2s;
}

.btn-cancellazione:hover i {
  transform: translateX(3px);
}

/* L'etichetta inglese e' lunga: sotto i 576px senza questo va a capo e la
   freccia resta spaiata di fianco al blocco su due righe. */
@media (max-width: 575.98px) {
  .btn-cancellazione {
    gap: 10px;
    padding: 16px 18px;
    font-size: 11px;
    letter-spacing: 1px;
  }
}

.nota-form {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: #999999;
}

/* L'azione irreversibile non deve somigliare al pulsante di conferma di sempre */
.btn-cancellazione.btn-pericolo {
  color: #ffffff;
  background-color: #c62828;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
}

.btn-cancellazione.btn-pericolo:hover,
.btn-cancellazione.btn-pericolo:focus {
  background-color: #a71d1d;
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.45);
}

.btn-cancellazione.btn-pericolo:hover i {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-cancellazione,
  .btn-cancellazione i,
  .campo-email input[type="email"] {
    transition: none;
  }
  .btn-cancellazione:hover,
  .btn-cancellazione:focus {
    transform: none;
  }
  .btn-cancellazione:hover i {
    transform: none;
  }
}

.box-informativo {
  margin: 35px 0;
  padding: 25px 28px;
  background-color: #faf9fb;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 6px;
}

.box-informativo h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Muli', 'Helvetica', 'Arial', sans-serif;
  letter-spacing: 0;
  color: #222222;
}

.box-informativo ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.box-informativo li {
  margin-bottom: 6px;
}

.box-informativo p:last-child {
  margin-bottom: 0;
}

.avviso-grave {
  padding: 16px 20px;
  color: #8c1c1c;
  background-color: #fdeaea;
  border-left: 3px solid #c62828;
  border-radius: 4px;
}

.esito h2 {
  font-size: 26px;
  font-weight: 400;
  color: #222222;
  margin-bottom: 16px;
}

.esito-ok {
  padding: 28px 30px;
  background-color: #f3faf4;
  border-left: 3px solid #3d9a50;
  border-radius: 6px;
}

.esito-ko {
  padding: 28px 30px;
  background-color: #faf9fb;
  border-left: 3px solid #7b4397;
  border-radius: 6px;
}

.esito-errore {
  padding: 14px 18px;
  color: #8c1c1c;
  background-color: #fdeaea;
  border-radius: 4px;
}

.testo-piccolo {
  font-size: 14px;
  color: #777777;
}

.testo-centrato {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}
