/* ==========================================================================
   pages/formazione.css
   Eccezioni della pagina formazione.
   Caricato da 1 pagina.
   ========================================================================== */

.hero-inner {
  margin: 0 auto;
  text-align: center;
}

.container {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-sub {
  margin-bottom: 2rem;
}

.gold-line {
  width: 48px;
  height: 3px;
  background: var(--oro);
  margin: 0 auto 1.5rem;
}

.intro-text p {
  margin-bottom: 0.8rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.aree-grid {
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.area-card {
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: box-shadow .2s,border-color .2s;
}

.area-icon {
  font-size: 1.8rem;
  margin-bottom: .8rem;
}

.area-title {
  font-weight: 700;
  margin-bottom: .6rem;
}

.area-desc {
  margin-bottom: 1rem;
}

.area-topics {
  list-style: none;
  padding: 0;
}

.area-topics li {
  color: var(--txt2);
  padding: .2rem 0;
  padding-left: .9rem;
  position: relative;
}

.area-topics li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--acc);
  font-size: .75rem;
}

.formati-grid {
  display: grid;
}

.formato-card {
  border: 1px solid var(--border);
  padding: 1.4rem;
  text-align: center;
}

.formato-icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
}

.formato-title {
  font-weight: 700;
  margin-bottom: .3rem;
}

.ruoli-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.ruolo-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.ruolo-icon {
  font-size: 1.5rem;
  margin-top: .1rem;
}

.ruolo-body p {
  text-align: left;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ruolo-body strong {
  display: block;
  font-size: .97rem;
  font-weight: 700;
  color: var(--blu);
  margin-bottom: .3rem;
}

.metodi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.metodo-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .45rem 1rem;
  font-size: .86rem;
  color: var(--txt);
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
}

.faq-q {
  font-weight: 700;
  color: var(--blu);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after {
  content: "＋";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--acc);
  flex-shrink: 0;
}

details[open] .faq-q::after {
  content: "－";
}

.faq-a {
  padding: 0 1.5rem 1.2rem;
}

.cta-box {
  background: linear-gradient(135deg,var(--blu),#1a3a6e);
  border-radius: var(--r);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-box p {
  margin-bottom: 0.8rem;
}

.correlati-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.correlato-link {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .55rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--acc);
  transition: border-color .2s,background .2s;
}

.correlato-link:hover {
  border-color: var(--acc);
  background: var(--bg3);
  text-decoration: none;
}

.frm-kromata-wrap {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
}

.frm-foto-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frm-foto-caption {
  color: var(--testo-muted);
  padding: .5rem .8rem;
  background: var(--grigio-freddo-1);
}

.frm-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.frm-related-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 44px;
}

.frm-condividi-box {
  border-top: 1px solid var(--bordo-neutro);
  padding-top: 18px;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.9;
}

.link-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.link-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .7rem;
  text-align: left;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oro,var(--oro));
}

.link-list a {
  color: var(--blu-accent,var(--blu-accent));
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list strong {
  color: var(--blu,var(--blu-notte));
}

.aree-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.4rem;
}

.aree-grid>* {
  flex: 0 1 calc((100% - 2.8rem)/3);
  max-width: calc((100% - 2.8rem)/3);
}

@media (max-width: 768px) {
  .aree-grid>* {
    flex-basis: calc((100% - 1.4rem)/2);
    max-width: calc((100% - 1.4rem)/2);
  }
}

@media (max-width: 520px) {
  .aree-grid>* {
    flex-basis: 100%;
    max-width: 100%;
  }
}

body.page-formazione .formati-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.15rem;
}

@media (max-width: 760px) {
  body.page-formazione .formati-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 520px) {
  body.page-formazione .formati-grid {
    grid-template-columns: 1fr;
  }
}

/* R5.17 · Su telefono l'elenco dei collegamenti va a bandiera: niente giustificato in colonna stretta (proposta 3). */
@media (max-width: 720px) {
  .link-list li {
    text-align: left;
    text-align-last: auto;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
}

/* R5.17 · Forma a pillola soltanto per ciò che si clicca (§ 3.6, proposta 5): metodi della formazione come testo semplice. */
:is(#_r517_label, .metodo-tag) {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--txt);
}

:is(#_r517_label, .metodo-tag)::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--oro, #d4b46d);
}

:is(#_r517_label, .metodi-grid) {
  column-gap: 1.2rem;
  row-gap: .4rem;
}
