/*
Theme Name:     ATEF – GeneratePress Child
Theme URI:      https://atef.ch/
Description:    Tema child personalizzato per il sito ATEF – Associazione Ticinese di Educazione Finanziaria. Basato su GeneratePress, compatibile con Gutenberg e ottimizzato per desktop, tablet e smartphone.
Author:         ATEF
Author URI:     https://atef.ch/
Template:       generatepress
Version:        1.0.0
Text Domain:    atef-generatepress-child
*/

/*
 * ATEF — CSS COMPLETO HOMEPAGE
 * GeneratePress Child + Gutenberg
 * Versione consolidata: hero fotografica responsive e card allineate.
 */

:root {
  --atef-navy: #142d4e;
  --atef-blue: #244c73;
  --atef-green: #397c5a;
  --atef-green-light: #b7e2c6;
  --atef-pale: #f4f7f8;
  --atef-text: #344253;
  --atef-border: #dfe7ec;
  --atef-border-green: #d5e5da;
  --atef-white: #ffffff;
}

/* BASE E LARGHEZZE */
.atef-home-hero,
.atef-section,
.atef-final-cta {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
}
.atef-home-hero *,
.atef-section *,
.atef-final-cta * {
  box-sizing: border-box;
}
.atef-home-hero .atef-container,
.atef-section .atef-container,
.atef-final-cta .atef-container {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.atef-home-hero p,
.atef-section p,
.atef-final-cta p {
  overflow-wrap: break-word;
}

/* HERO CON FOTO — desktop, tablet e mobile */
.atef-home-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  padding: clamp(52px, 6.5vw, 84px) 0;
  background-color: var(--atef-pale);
  background-image:
    linear-gradient(
      90deg,
      rgba(244,247,248,.98) 0%,
      rgba(244,247,248,.94) 35%,
      rgba(244,247,248,.76) 56%,
      rgba(244,247,248,.16) 100%
    ),
    url(https://atef.ch/wp-content/uploads/2026/10/Conferenza-di-educazione-finanziaria.png);
  background-position: center, center right;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 1px solid var(--atef-border);
}
.atef-home-hero > *,
.atef-home-hero .atef-container {
  position: relative;
  z-index: 1;
}
.atef-eyebrow {
  margin: 0 0 10px !important;
  color: var(--atef-green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.35px;
  line-height: 1.5;
}
.atef-hero-title {
  max-width: 880px;
  margin: 0 0 17px !important;
  color: var(--atef-navy);
  font-size: clamp(35px, 4.8vw, 60px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1.1px;
  text-wrap: balance;
}
.atef-hero-text {
  max-width: 790px;
  margin: 0 0 11px !important;
  color: var(--atef-text);
  font-size: 17px;
  line-height: 1.7;
}

/* SEZIONI */
.atef-section {
  padding: clamp(38px, 4.8vw, 60px) 0;
}
.atef-why,
.atef-projects {
  background: var(--atef-white);
}
.atef-activities {
  background: var(--atef-pale);
}
.atef-section h2,
.atef-final-cta h2 {
  max-width: 900px;
  margin: 0 0 15px !important;
  color: var(--atef-navy);
  font-size: clamp(29px, 3.4vw, 41px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.55px;
  text-wrap: balance;
}
.atef-section p:not(.atef-eyebrow):not(.atef-card-number) {
  margin-top: 0;
  margin-bottom: 11px;
  color: var(--atef-text);
  font-size: 16px;
  line-height: 1.7;
}
.atef-section .atef-intro {
  max-width: 900px;
  margin: 0 0 11px !important;
  font-size: 18px !important;
  line-height: 1.65;
}

/* GRIGLIA ATTIVITÀ — card con altezza uguale nella stessa riga */
.atef-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 24px auto 0 !important;
}
.atef-card-grid > .wp-block-column {
  display: flex !important;
  align-items: stretch !important;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  margin: 0 !important;
}
.atef-card {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 25px;
  background: var(--atef-white);
  border: 1px solid var(--atef-border-green);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(20,45,78,.035);
  overflow-wrap: anywhere;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.atef-card:hover {
  border-color: #b7d3c0;
  box-shadow: 0 9px 24px rgba(20,45,78,.07);
  transform: translateY(-2px);
}
.atef-card-number {
  margin: 0 0 11px !important;
  color: var(--atef-green) !important;
  font-size: 10px !important;
  font-weight: 750;
  letter-spacing: 1.2px;
  line-height: 1.5 !important;
}
.atef-card h3 {
  margin: 0 0 12px !important;
  color: var(--atef-navy);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.2px;
  text-wrap: balance;
}
.atef-card p:not(.atef-card-number) {
  margin: 0 0 11px !important;
  color: var(--atef-text);
  font-size: 15px !important;
  line-height: 1.65 !important;
}
.atef-card p:last-child { margin-bottom: 0 !important; }

/* CONTENITORE PROGETTI */
.atef-projects > .atef-container,
.atef-projects > .wp-block-group > .atef-container {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.atef-projects .atef-intro { max-width: 900px; }

/*
 * PROGETTI — FIX ALLINEAMENTO:
 * la griglia controlla le colonne e ogni colonna allunga la card.
 * Il bordo inferiore di tutte le card della riga coincide.
 */
.atef-project-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  margin: 24px auto 0 !important;
}
.atef-project-grid > .wp-block-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-self: stretch !important;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  margin: 0 !important;
}
.atef-project-grid .atef-project-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  min-width: 0;
  padding: 27px 25px;
  background: var(--atef-white);
  border: 1px solid var(--atef-border-green);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(20,45,78,.04);
  overflow-wrap: anywhere;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.atef-project-grid .atef-project-card:hover {
  border-color: #b7d3c0;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,45,78,.08);
}
.atef-project-grid .atef-card-number {
  margin: 0 0 12px !important;
  font-size: 10px !important;
  letter-spacing: 1.15px;
  line-height: 1.5 !important;
}
.atef-project-grid .atef-project-card h3 {
  margin: 0 0 14px !important;
  color: var(--atef-navy);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.3;
  letter-spacing: -.2px;
  text-wrap: balance;
}
.atef-project-grid .atef-project-card p:not(.atef-card-number) {
  margin: 0 0 12px !important;
  color: var(--atef-text);
  font-size: 15px !important;
  line-height: 1.68 !important;
}
.atef-project-grid .atef-project-card p:last-child { margin-bottom: 0 !important; }

/* PULSANTI */
.atef-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 21px 0 0 !important;
}
.atef-buttons .wp-block-button { margin: 0 !important; }
.atef-buttons .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.atef-button-primary .wp-block-button__link {
  background: var(--atef-navy);
  border: 1px solid var(--atef-navy);
  color: #fff;
}
.atef-button-primary .wp-block-button__link:hover {
  background: var(--atef-blue);
  border-color: var(--atef-blue);
  color: #fff;
}
.atef-button-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--atef-navy);
  color: var(--atef-navy);
}
.atef-button-outline .wp-block-button__link:hover {
  background: var(--atef-navy);
  color: #fff;
}

/* CTA FINALE */
.atef-final-cta {
  padding: clamp(42px, 5vw, 66px) 0;
  background: var(--atef-navy);
}
.atef-final-cta .atef-eyebrow { color: var(--atef-green-light); }
.atef-final-cta h2 { color: #fff; }
.atef-final-cta p:not(.atef-eyebrow) {
  max-width: 780px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}
.atef-final-cta .atef-button-primary .wp-block-button__link {
  background: #fff;
  border-color: #fff;
  color: var(--atef-navy);
}
.atef-final-cta .atef-button-primary .wp-block-button__link:hover {
  background: #edf5ef;
  border-color: #edf5ef;
  color: var(--atef-navy);
}
.atef-final-cta .atef-button-outline .wp-block-button__link {
  border-color: #fff;
  color: #fff;
}
.atef-final-cta .atef-button-outline .wp-block-button__link:hover {
  background: #fff;
  color: var(--atef-navy);
}

/* ACCESSIBILITÀ */
.atef-home-hero a:focus-visible,
.atef-section a:focus-visible,
.atef-final-cta a:focus-visible {
  outline: 3px solid #79bd94;
  outline-offset: 3px;
}

/* TABLET */
@media (min-width: 601px) and (max-width: 980px) {
  .atef-home-hero .atef-container,
  .atef-section .atef-container,
  .atef-final-cta .atef-container,
  .atef-projects > .atef-container,
  .atef-projects > .wp-block-group > .atef-container {
    width: min(calc(100% - 40px), 780px);
  }
  .atef-home-hero {
    min-height: 390px;
    background-image:
      linear-gradient(
        90deg,
        rgba(244,247,248,.97) 0%,
        rgba(244,247,248,.90) 48%,
        rgba(244,247,248,.55) 100%
      ),
      url(https://atef.ch/wp-content/uploads/2026/10/Conferenza-di-educazione-finanziaria.png);
    background-position: center, 62% center;
    background-size: cover, cover;
  }
  .atef-card-grid,
  .atef-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .atef-project-grid > .wp-block-column:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 520px) !important;
    justify-self: center;
  }
  .atef-card,
  .atef-project-grid .atef-project-card { padding: 23px; }
}

/* SMARTPHONE */
@media (max-width: 600px) {
  .atef-home-hero .atef-container,
  .atef-section .atef-container,
  .atef-final-cta .atef-container,
  .atef-projects > .atef-container,
  .atef-projects > .wp-block-group > .atef-container {
    width: calc(100% - 32px);
  }
  .atef-home-hero {
    min-height: 400px;
    padding: 36px 0;
    background-image:
      linear-gradient(
        180deg,
        rgba(244,247,248,.92) 0%,
        rgba(244,247,248,.84) 48%,
        rgba(244,247,248,.48) 100%
      ),
      url(https://atef.ch/wp-content/uploads/2026/10/Conferenza-di-educazione-finanziaria.png);
    background-position: center, 65% center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
  }
  .atef-section { padding: 36px 0; }
  .atef-final-cta { padding: 40px 0; }
  .atef-hero-title {
    font-size: clamp(32px, 9vw, 39px);
    line-height: 1.12;
    letter-spacing: -.5px;
    margin-bottom: 15px !important;
  }
  .atef-hero-text {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 10px !important;
  }
  .atef-section h2,
  .atef-final-cta h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.2;
    letter-spacing: -.3px;
    margin-bottom: 13px !important;
  }
  .atef-section p:not(.atef-eyebrow):not(.atef-card-number),
  .atef-final-cta p:not(.atef-eyebrow) {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
  }
  .atef-section .atef-intro { font-size: 16px !important; }

  .atef-card-grid,
  .atef-project-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch !important;
    gap: 14px;
    margin-top: 19px !important;
  }
  .atef-card-grid > .wp-block-column,
  .atef-project-grid > .wp-block-column,
  .atef-project-grid > .wp-block-column:last-child:nth-child(odd) {
    display: flex !important;
    grid-column: auto;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }
  .atef-card,
  .atef-project-grid .atef-project-card {
    height: auto !important;
    min-height: 0;
    padding: 21px;
    border-radius: 11px;
  }
  .atef-card h3,
  .atef-project-grid .atef-project-card h3 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px !important;
  }
  .atef-card-number,
  .atef-project-grid .atef-card-number { margin-bottom: 9px !important; }
  .atef-card p:not(.atef-card-number),
  .atef-project-grid .atef-project-card p:not(.atef-card-number) {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
  .atef-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: 18px !important;
  }
  .atef-buttons .wp-block-button,
  .atef-buttons .wp-block-button__link {
    width: 100%;
    max-width: 100%;
  }
  .atef-buttons .wp-block-button__link {
    min-height: 46px;
    padding: 12px 15px;
  }
}

/* RIDUZIONE ANIMAZIONI */
@media (prefers-reduced-motion: reduce) {
  .atef-card,
  .atef-project-grid .atef-project-card,
  .atef-buttons .wp-block-button__link { transition: none; }
  .atef-card:hover,
  .atef-project-grid .atef-project-card:hover { transform: none; }
}


/* ==========================================================
   RESTYLING CARD "DALLE IDEE AGLI STRUMENTI"
   Sostituisce visivamente le tre card della sezione progetti.
   Non richiede modifiche ai blocchi Gutenberg.
   ========================================================== */

.atef-project-grid {
  gap: 24px !important;
  margin-top: 30px !important;
  align-items: stretch !important;
}

.atef-project-grid > .wp-block-column {
  min-width: 0;
}

.atef-project-grid .atef-project-card {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 32px 28px 29px !important;
  overflow: hidden;
  border: 1px solid #dce7e1 !important;
  border-top: 4px solid var(--atef-green) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(183,226,198,.22), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%) !important;
  box-shadow: 0 8px 28px rgba(20,45,78,.055) !important;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease !important;
}

.atef-project-grid > .wp-block-column:nth-child(2) .atef-project-card {
  border-top-color: var(--atef-blue) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(36,76,115,.09), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

.atef-project-grid > .wp-block-column:nth-child(3) .atef-project-card {
  border-top-color: #8aab94 !important;
}

.atef-project-grid .atef-project-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -32px;
  top: 44px;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(57,124,90,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(57,124,90,.025), 0 0 0 30px rgba(57,124,90,.018);
  pointer-events: none;
}

.atef-project-grid .atef-project-card:hover {
  transform: translateY(-5px) !important;
  border-color: #bfd5c6 !important;
  box-shadow: 0 17px 38px rgba(20,45,78,.105) !important;
}

.atef-project-grid .atef-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 0 0 22px !important;
  padding: 0 12px;
  border: 1px solid #d4e8da;
  border-radius: 12px;
  background: #edf7f0;
  color: #397c5a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  line-height: 1 !important;
}

.atef-project-grid > .wp-block-column:nth-child(2) .atef-card-number {
  border-color: #d8e3ed;
  background: #eef3f8;
  color: var(--atef-blue) !important;
}

.atef-project-grid > .wp-block-column:nth-child(3) .atef-card-number {
  border-color: #dce8df;
  background: #f0f6f1;
  color: #50765b !important;
}

.atef-project-grid .atef-project-card h3 {
  position: relative;
  margin: 0 0 15px !important;
  color: var(--atef-navy) !important;
  font-size: clamp(21px, 1.8vw, 25px) !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -.45px;
  text-wrap: balance;
}

.atef-project-grid .atef-project-card p:not(.atef-card-number) {
  position: relative;
  color: #4b5c6a !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.atef-project-grid .atef-project-card p:last-child {
  margin-bottom: 0 !important;
}

/* Le tre card restano ordinate anche su tablet e smartphone */
@media (min-width: 601px) and (max-width: 980px) {
  .atef-project-grid {
    gap: 18px !important;
  }
  .atef-project-grid .atef-project-card {
    padding: 25px 22px !important;
  }
}

@media (max-width: 600px) {
  .atef-project-grid {
    gap: 16px !important;
  }
  .atef-project-grid .atef-project-card {
    padding: 24px 22px !important;
    border-radius: 15px !important;
  }
  .atef-project-grid .atef-card-number {
    margin-bottom: 17px !important;
  }
  .atef-project-grid .atef-project-card h3 {
    font-size: 21px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atef-project-grid .atef-project-card,
  .atef-project-grid .atef-project-card:hover {
    transition: none !important;
    transform: none !important;
  }
}
/* ATEF – CHI SIAMO | Stile coordinato alla homepage
   Palette: navy #142d4e, blu #244c73, verde #8fc6a4, sfondo #f4f7f8.
   Incolla in Aspetto > Personalizza > CSS aggiuntivo.
   Tutti i testi rimangono modificabili nei blocchi Gutenberg. */

/* Base: larghezza contenuta e centratura coerente con GeneratePress */
.atef-about-section,
.atef-about-final {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(48px, 6vw, 82px) 24px;
  margin-inline: auto;
  background: transparent;
}
.atef-about-section .atef-container,
.atef-about-final .atef-container {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.atef-about-section .wp-block-group,
.atef-about-final .wp-block-group { box-sizing: border-box; }
.atef-about-section p,
.atef-about-final p {
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 16px;
}
.atef-about-section h2,
.atef-about-final h2 {
  color: #142d4e;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.atef-about-section h3,
.atef-about-final h3 {
  color: #142d4e;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.28;
  margin: 8px 0 14px;
}
.atef-about-kicker {
  color: #477b63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px !important;
}

/* HERO FULL WIDTH: la fascia occupa tutta la larghezza dello schermo,
   mentre il testo resta centrato in un contenitore leggibile. */
.atef-about-intro {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: clamp(68px, 9vw, 124px) 24px clamp(62px, 8vw, 104px) !important;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(125deg, #102642 0%, #142d4e 48%, #244c73 100%) !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  isolation: isolate;
}
.atef-about-intro::before {
  content: "";
  position: absolute;
  width: clamp(240px, 35vw, 480px);
  height: clamp(240px, 35vw, 480px);
  top: -42%;
  right: -8%;
  border-radius: 50%;
  border: 1px solid rgba(143, 198, 164, .25);
  box-shadow: 0 0 0 35px rgba(143, 198, 164, .045), 0 0 0 75px rgba(143, 198, 164, .035);
  z-index: -1;
  pointer-events: none;
}
.atef-about-intro .atef-container {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px) !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
}
.atef-about-intro-grid {
  display: block !important;
  width: 100%;
  max-width: 920px;
  margin: 0 auto !important;
}
.atef-about-intro-grid > .wp-block-column {
  flex-basis: 100% !important;
  width: 100%;
  min-width: 0;
}
.atef-about-intro .atef-about-kicker {
  display: inline-block;
  color: #b8e2c5 !important;
  background: rgba(143, 198, 164, .12);
  border: 1px solid rgba(184, 226, 197, .32);
  border-radius: 999px;
  padding: 8px 14px;
  margin: 0 0 24px !important;
}
.atef-about-intro h2 {
  max-width: 900px;
  margin: 0 auto 24px !important;
  color: #fff !important;
  font-size: clamp(38px, 6vw, 68px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance;
}
.atef-about-lead {
  max-width: 790px;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.5vw, 19px);
}
.atef-about-lead p { margin: 0 auto 13px !important; }
.atef-about-lead p:last-child { margin-bottom: 0 !important; }

/* Titoli sezione e storia */
.atef-about-section-heading {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 36px !important;
  text-align: center;
}
.atef-about-section-heading > * { margin-left: auto; margin-right: auto; }
.atef-about-story-box {
  width: min(900px, 100%);
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 42px);
  background: #f4f7f8;
  border: 1px solid #e0e8ed;
  border-left: 4px solid #8fc6a4;
  border-radius: 14px;
  text-align: left;
}
.atef-about-story-box .atef-about-question {
  color: #142d4e;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 22px;
}

/* Missione: pannello compatto e centrato, colori della homepage */
.atef-about-mission { padding-top: 16px; }
.atef-about-mission-panel {
  display: block !important;
  width: min(1000px, 100%);
  margin: 0 auto !important;
  padding: clamp(28px, 5vw, 54px);
  background: #142d4e;
  color: #fff;
  border-radius: 18px;
  text-align: center;
}
.atef-about-mission-panel h2 { color: #fff; }
.atef-about-mission-panel .atef-about-kicker { color: #a8d8b8; }
.atef-about-mission-content { max-width: 780px; margin: 0 auto !important; }
.atef-about-mission-content p { color: #fff; }

/* Card valori e metodo: righe ordinate, altezza coerente, contenuto centrato */
.atef-about-values { background: #f4f7f8; }
.atef-about-card-grid {
  gap: 22px;
  align-items: stretch;
  margin-left: auto !important;
  margin-right: auto !important;
}
.atef-about-card-grid > .wp-block-column { min-width: 0; }
.atef-about-card {
  height: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid #dfe7ed;
  border-top: 4px solid #244c73;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(20, 45, 78, .06);
  text-align: center;
}
.atef-about-card-green { border-top-color: #8fc6a4; }
.atef-about-card-blue { border-top-color: #244c73; }
.atef-about-card-number {
  color: #668078;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 14px !important;
}
.atef-about-card-icon {
  color: #244c73;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 14px !important;
}
.atef-about-card-green .atef-about-card-icon { color: #477b63; }
.atef-about-method { background: transparent; }
.atef-about-method-card { border-top-color: #8fc6a4; }
.atef-about-method-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f3eb;
  color: #244c73;
  font-weight: 800;
  margin: 0 auto 16px !important;
}

/* Team: schede centrate e ordinate */
.atef-about-people { background: #f4f7f8; }
.atef-about-person-card {
  height: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid #dfe7ed;
  border-top: 4px solid #8fc6a4;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(20, 45, 78, .05);
  text-align: center;
}
.atef-about-person-top {
  justify-content: center;
  align-items: center !important;
  gap: 12px;
  margin-bottom: 18px !important;
}
.atef-about-person-top > .wp-block-column:first-child { flex: 0 0 64px !important; }
.atef-about-person-avatar {
  display: flex !important;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f3eb;
  color: #142d4e;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto !important;
}
.atef-about-person-top h3 { margin: 0 0 5px; }
.atef-about-person-role { color: #477b63; font-weight: 700; margin: 0 !important; }

/* CTA finale: centrata, sfondo limitato al pannello */
.atef-about-final { padding-top: 24px; padding-bottom: 72px; }
.atef-about-final-panel {
  width: min(1000px, 100%);
  margin: 0 auto !important;
  padding: clamp(30px, 5vw, 56px);
  background: #f4f7f8;
  border: 1px solid #dfe7ed;
  border-radius: 18px;
  text-align: center;
}
.atef-about-final-panel > p:not(.atef-about-kicker) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.atef-about-final-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.atef-about-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.atef-about-btn .wp-block-button__link:hover { transform: translateY(-2px); }
.atef-about-btn-primary .wp-block-button__link {
  background: #8fc6a4;
  color: #142d4e;
  border: 1px solid #8fc6a4;
}
.atef-about-btn-primary .wp-block-button__link:hover { background: #a5d5b6; color: #142d4e; }
.atef-about-btn-outline-dark .wp-block-button__link {
  color: #142d4e;
  background: #fff;
  border: 1px solid #244c73;
}
.atef-about-btn-outline-dark .wp-block-button__link:hover { background: #244c73; color: #fff; }

/* Responsive */
@media (max-width: 781px) {
  .atef-about-section, .atef-about-final { padding: 44px 18px; }
  .atef-about-card-grid { display: grid !important; grid-template-columns: 1fr; gap: 18px; }
  .atef-about-card-grid > .wp-block-column { width: 100%; margin: 0 !important; }
  .atef-about-mission-panel { padding: 30px 22px; }
  .atef-about-story-box { padding: 24px 20px; }
  .atef-about-person-top { flex-wrap: wrap; }
  .atef-about-final-actions { flex-direction: column; align-items: stretch; }
  .atef-about-final-actions .wp-block-button,
  .atef-about-final-actions .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
@media (min-width: 600px) and (max-width: 781px) {
  .atef-about-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .atef-about-section, .atef-about-final { padding-left: 14px; padding-right: 14px; }
  .atef-about-story-box, .atef-about-person-card, .atef-about-card, .atef-about-final-panel, .atef-about-mission-panel { border-radius: 12px; }
  .atef-about-intro h2 { font-size: 30px; }
}

/* === REVISIONE 2: HERO più incisiva, card moderne e spazi più compatti === */
.atef-about-section,
.atef-about-final {
  padding-top: clamp(34px, 4vw, 54px);
  padding-bottom: clamp(34px, 4vw, 54px);
}

/* Hero / introduzione: pannello navy centrato con accento verde */
.atef-about-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 6vw, 76px) 22px;
  background: #f4f7f8;
}
.atef-about-intro .atef-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}
.atef-about-intro-grid {
  position: relative;
  max-width: 940px;
  padding: clamp(30px, 5vw, 58px) clamp(22px, 5vw, 64px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, #142d4e 0%, #1d4263 58%, #244c73 100%);
  box-shadow: 0 18px 44px rgba(20,45,78,.16);
  color: #fff;
}
.atef-about-intro-grid:before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -115px;
  border: 1px solid rgba(143,198,164,.38);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(143,198,164,.06), 0 0 0 58px rgba(143,198,164,.04);
  pointer-events: none;
}
.atef-about-intro-grid > .wp-block-column { position: relative; z-index: 1; }
.atef-about-intro .atef-about-kicker {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 18px !important;
  border: 1px solid rgba(143,198,164,.5);
  border-radius: 999px;
  background: rgba(143,198,164,.12);
  color: #b9e2c7;
  font-size: 11px;
  letter-spacing: .16em;
}
.atef-about-intro h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.atef-about-intro h2:after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 8px;
  background: #8fc6a4;
}
.atef-about-intro .atef-about-lead {
  max-width: 760px;
  margin-top: 0 !important;
  color: rgba(255,255,255,.9);
  font-size: clamp(15px, 1.6vw, 17px);
}
.atef-about-intro .atef-about-lead p { margin-bottom: 10px; }
.atef-about-intro .atef-about-lead p:last-child { margin-bottom: 0; }

/* Spazi verticali ridotti tra le sezioni */
.atef-about-section-heading { margin-bottom: 24px !important; }
.atef-about-section-heading h2 { margin-bottom: 12px; }
.atef-about-section-heading > p:last-child { margin-bottom: 0; }
.atef-about-mission { padding-top: 8px; }
.atef-about-values { padding-top: 38px; padding-bottom: 38px; }
.atef-about-method { padding-top: 38px; padding-bottom: 38px; }
.atef-about-people { padding-top: 38px; padding-bottom: 38px; }
.atef-about-final { padding-top: 22px; padding-bottom: 48px; }

/* Card più pulite: meno ingombro, gerarchia tipografica e hover discreto */
.atef-about-card-grid { gap: 18px; }
.atef-about-card,
.atef-about-person-card {
  padding: clamp(20px, 2.3vw, 27px);
  border: 1px solid #e0e8ed;
  border-top: 3px solid #244c73;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(20,45,78,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.atef-about-card:hover,
.atef-about-person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20,45,78,.09);
  border-top-color: #8fc6a4;
}
.atef-about-card h3,
.atef-about-person-card h3 { margin-top: 6px; margin-bottom: 10px; }
.atef-about-card p,
.atef-about-person-card p { line-height: 1.65; margin-bottom: 11px; }
.atef-about-card p:last-child,
.atef-about-person-card p:last-child { margin-bottom: 0; }
.atef-about-card-number { margin-bottom: 9px !important; }
.atef-about-card-icon { margin-bottom: 9px !important; }
.atef-about-method-icon { margin-bottom: 10px !important; }
.atef-about-story-box { padding: clamp(22px, 3vw, 34px); }
.atef-about-story-box p { margin-bottom: 12px; }
.atef-about-story-box .atef-about-question { margin-bottom: 16px; }
.atef-about-mission-panel { padding: clamp(28px, 4vw, 44px); border-radius: 20px; }
.atef-about-mission-content p { margin-bottom: 12px; }
.atef-about-final-panel { padding: clamp(28px, 4vw, 44px); }
.atef-about-final-actions { margin-top: 20px; }

@media (max-width: 781px) {
  .atef-about-section,
  .atef-about-final { padding-top: 32px; padding-bottom: 32px; }
  .atef-about-intro { padding: 30px 14px; }
  .atef-about-intro-grid { padding: 32px 22px; border-radius: 18px; }
  .atef-about-intro h2 { font-size: clamp(31px, 8vw, 42px); }
  .atef-about-intro-grid:before { width: 170px; height: 170px; right: -70px; top: -70px; }
  .atef-about-section-heading { margin-bottom: 20px !important; }
  .atef-about-card-grid { gap: 14px; }
  .atef-about-card, .atef-about-person-card { padding: 22px; }
  .atef-about-values, .atef-about-method, .atef-about-people { padding-top: 30px; padding-bottom: 30px; }
}
@media (max-width: 480px) {
  .atef-about-intro-grid { padding: 28px 18px; }
  .atef-about-intro h2 { font-size: 31px; }
  .atef-about-intro .atef-about-lead { font-size: 15px; }
  .atef-about-card, .atef-about-person-card { border-radius: 12px; }
}

/* Hero full-width: accorgimenti per smartphone */
@media (max-width: 600px) {
  .atef-about-intro {
    padding: 60px 20px 54px !important;
  }
  .atef-about-intro h2 {
    font-size: clamp(34px, 9vw, 46px) !important;
    line-height: 1.08 !important;
  }
  .atef-about-intro::before {
    top: -8%;
    right: -38%;
    opacity: .75;
  }
}

/* ATEF – Pagina Diventa sostenitore | GeneratePress / Gutenberg
   Incollare in Aspetto > Personalizza > CSS aggiuntivo oppure nel CSS del child theme.
   Palette coerente con la pagina Chi siamo. */

:root {
  --atef-navy: #142d4e;
  --atef-blue: #244c73;
  --atef-green: #8fc6a4;
  --atef-pale: #f4f7f8;
  --atef-text: #263746;
  --atef-muted: #5b6b78;
  --atef-border: #dce5ea;
}

.atef-support-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px !important;
  background-color: var(--atef-navy);
  background-image: linear-gradient(135deg, rgba(20,45,78,.94), rgba(36,76,115,.78) 58%, rgba(20,45,78,.88));
  text-align: center;
  padding: clamp(64px, 8vw, 112px) 24px;
}
.atef-support-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,45,78,.90), rgba(36,76,115,.72) 60%, rgba(20,45,78,.88));
  pointer-events: none;
}
.atef-support-hero .wp-block-cover__background { opacity: .45 !important; }
.atef-support-hero .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.atef-support-hero-inner { max-width: 900px !important; margin-inline: auto !important; }
.atef-support-eyebrow, .atef-support-kicker {
  color: #5a9978;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.atef-support-hero .atef-support-eyebrow { color: #b8e2c8; }
.atef-support-hero-title {
  color: #fff !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 850px;
  margin: 0 auto 24px !important;
}
.atef-support-hero-text {
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
  max-width: 790px;
  margin: 0 auto 14px !important;
}
.atef-support-hero-buttons { margin-top: 28px !important; }
.atef-support-button .wp-block-button__link,
.atef-support-hero-buttons .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 25px;
  border: 2px solid var(--atef-green);
  border-radius: 8px;
  background: var(--atef-green);
  color: var(--atef-navy) !important;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.atef-support-button .wp-block-button__link:hover,
.atef-support-hero-buttons .wp-block-button__link:hover {
  background: #a7d9b8;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  transform: translateY(-2px);
}
.atef-support-hero-buttons .wp-block-button__link { background: #fff; border-color: #fff; color: var(--atef-navy) !important; }

.atef-support-section {
  padding: clamp(56px, 7vw, 88px) 24px;
  color: var(--atef-text);
}
.atef-support-section > .wp-block-heading,
.atef-support-section .atef-support-section-title {
  color: var(--atef-navy);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 22px;
}
.atef-support-section p { line-height: 1.75; }
.atef-support-lead {
  color: #425667;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.75;
  max-width: 920px;
}
.atef-support-why { background: #fff; }
.atef-support-projects { background: var(--atef-pale); }
.atef-support-audience { background: #fff; }
.atef-support-business { background: var(--atef-pale); }
.atef-support-network { background: #fff; }
.atef-support-contact { background: var(--atef-pale); }
.atef-support-donations { background: #fff; }

.atef-support-card-grid {
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
  margin-bottom: 0;
}
.atef-support-card-grid .wp-block-column { display: flex; }
.atef-support-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 2.5vw, 30px);
  background: #fff;
  border: 1px solid var(--atef-border);
  border-top: 4px solid var(--atef-blue);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(20,45,78,.055);
}
.atef-support-card-green { border-top-color: var(--atef-green); }
.atef-support-card-blue { border-top-color: var(--atef-blue); }
.atef-support-card h3 {
  color: var(--atef-navy);
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.atef-support-card p:last-child { margin-bottom: 0; }
.atef-support-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 20px !important;
  border-radius: 12px;
  background: #eaf5ee;
  color: var(--atef-navy);
  font-weight: 800;
  font-size: 14px;
}
.atef-support-card .wp-block-buttons { margin-top: 20px; }
.atef-support-card-grid-two { max-width: 760px; margin-left: auto; margin-right: auto; }

.atef-support-seminar {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  border: 1px solid #cfe2d6;
  border-left: 5px solid var(--atef-green);
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,45,78,.06);
}
.atef-support-seminar-label {
  color: #4c8768;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 12px !important;
}
.atef-support-seminar h3 { color: var(--atef-navy); font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.atef-support-business-columns { gap: clamp(28px, 5vw, 64px); }

.atef-support-logos { margin-top: 28px; }
.atef-support-logo-grid { gap: 18px; }
.atef-support-logo-placeholder {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px dashed #b9c8d1;
  border-radius: 12px;
  background: #fbfcfd;
  text-align: center;
  color: #7a8994;
}
.atef-support-logo-placeholder p { margin: 0; font-size: 14px; font-weight: 600; }

.atef-support-form-placeholder {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--atef-border);
  border-radius: 14px;
  background: #fff;
}
.atef-support-donation-panel {
  padding: clamp(28px, 5vw, 54px);
  background: var(--atef-navy);
  color: #fff;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(20,45,78,.15);
}
.atef-support-donation-panel .atef-support-kicker { color: #b8e2c8; }
.atef-support-donation-panel .atef-support-section-title { color: #fff !important; }
.atef-support-donation-panel p { color: rgba(255,255,255,.9); }
.atef-support-donation-note {
  margin-top: 22px !important;
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.45);
  border-radius: 10px;
  font-size: 14px;
}

.atef-support-section .wp-block-buttons { gap: 12px; }
.atef-support-section .wp-block-button { max-width: 100%; }
.atef-support-section .wp-block-button__link { white-space: normal; text-align: center; }

@media (max-width: 781px) {
  .atef-support-hero { min-height: 0 !important; padding: 76px 20px 70px; }
  .atef-support-hero-title { font-size: clamp(32px, 8vw, 43px) !important; }
  .atef-support-hero-text { font-size: 16px; }
  .atef-support-section { padding: 52px 20px; }
  .atef-support-card-grid { gap: 16px; }
  .atef-support-card-grid .wp-block-column { flex-basis: 100% !important; }
  .atef-support-business-columns { gap: 24px; }
  .atef-support-logo-grid { gap: 12px; }
  .atef-support-logo-placeholder { min-height: 100px; }
}
@media (max-width: 480px) {
  .atef-support-hero { padding: 64px 17px 58px; }
  .atef-support-hero-title { font-size: 31px !important; }
  .atef-support-hero-buttons .wp-block-button,
  .atef-support-hero-buttons .wp-block-button__link,
  .atef-support-card .wp-block-button,
  .atef-support-card .wp-block-button__link,
  .atef-support-seminar .wp-block-button,
  .atef-support-seminar .wp-block-button__link { width: 100%; box-sizing: border-box; }
  .atef-support-section { padding: 44px 17px; }
}
/* ATEF – Pagina Eventi | GeneratePress + Gutenberg
   Inserire in Aspetto > Personalizza > CSS aggiuntivo oppure nel child theme.
   Classi isolate: atef-events-* */

:root {
  --atef-events-navy: #142d4e;
  --atef-events-blue: #244c73;
  --atef-events-green: #8fc6a4;
  --atef-events-pale: #f4f7f8;
  --atef-events-text: #344253;
  --atef-events-muted: #637183;
  --atef-events-border: #dce5ea;
}

.atef-events-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 500px !important;
  padding: clamp(64px, 8vw, 108px) 24px;
  text-align: center;
  background-color: var(--atef-events-navy);
  background-image: linear-gradient(135deg, rgba(20,45,78,.94), rgba(36,76,115,.78) 58%, rgba(20,45,78,.9));
}
.atef-events-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,45,78,.88), rgba(36,76,115,.68) 58%, rgba(20,45,78,.88));
  pointer-events: none;
}
.atef-events-hero .wp-block-cover__background { opacity: .48 !important; }
.atef-events-hero .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.atef-events-hero-inner { max-width: 900px !important; margin-inline: auto !important; }
.atef-events-eyebrow, .atef-events-kicker {
  color: #548b6d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.45;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.atef-events-hero .atef-events-eyebrow { color: #b8e2c8; }
.atef-events-hero-title {
  max-width: 880px;
  margin: 0 auto 24px !important;
  color: #fff !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.atef-events-hero-text {
  max-width: 790px;
  margin: 0 auto 14px !important;
  color: rgba(255,255,255,.93) !important;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
}
.atef-events-hero-buttons { margin-top: 28px !important; }
.atef-events-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 2px solid var(--atef-events-green);
  border-radius: 8px;
  background: var(--atef-events-green);
  color: var(--atef-events-navy) !important;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.atef-events-button .wp-block-button__link:hover {
  background: #a7d9b8;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  transform: translateY(-2px);
}
.atef-events-button-light .wp-block-button__link {
  color: var(--atef-events-navy) !important;
  background: #fff;
  border-color: #fff;
}

.atef-events-section {
  padding: clamp(54px, 7vw, 84px) 24px;
  color: var(--atef-events-text);
}
.atef-events-section-title {
  margin: 0 0 20px !important;
  color: var(--atef-events-navy) !important;
  font-size: clamp(29px, 3.4vw, 42px) !important;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.atef-events-section p { line-height: 1.75; }
.atef-events-lead {
  max-width: 920px;
  color: #4c5d6d;
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.75;
}
.atef-events-intro { padding-bottom: 30px; background: #fff; }
.atef-events-formats { padding-top: 20px; background: #fff; }
.atef-events-contact { background: var(--atef-events-pale); }

.atef-events-card-grid {
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin: 0 0 22px;
}
.atef-events-card-grid .wp-block-column { display: flex; min-width: 0; }
.atef-events-card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: clamp(23px, 2.5vw, 30px);
  background: #fff;
  border: 1px solid var(--atef-events-border);
  border-top: 5px solid var(--atef-events-blue);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20,45,78,.065);
  transition: transform .22s ease, box-shadow .22s ease;
}
.atef-events-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20,45,78,.11);
}
.atef-events-card-green { border-top-color: var(--atef-events-green); }
.atef-events-card-blue { border-top-color: var(--atef-events-blue); }
.atef-events-card-top { width: 100%; margin-bottom: 20px !important; }
.atef-events-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  border-radius: 13px;
  background: #edf3f8;
  color: var(--atef-events-navy);
  font-size: 13px;
  font-weight: 800;
}
.atef-events-card-green .atef-events-card-number { background: #eaf5ee; }
.atef-events-card-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--atef-events-pale);
  color: var(--atef-events-blue);
  font-size: 23px;
  font-weight: 700;
}
.atef-events-card h3 {
  margin: 0 0 13px !important;
  color: var(--atef-events-navy);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.28;
}
.atef-events-card p { font-size: 15px; }
.atef-events-card-summary {
  color: #435c70;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.6 !important;
}
.atef-events-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 18px;
  color: #567566;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .12em;
}
.atef-events-status {
  display: inline-block;
  align-self: flex-start;
  margin: 6px 0 10px !important;
  padding: 7px 11px;
  border: 1px solid #ead5a3;
  border-radius: 999px;
  background: #fff7e5;
  color: #77551a;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.3 !important;
}
.atef-events-status-note {
  margin-top: 0 !important;
  color: var(--atef-events-muted);
  font-size: 13px !important;
  font-style: italic;
}
.atef-events-card-featured {
  justify-content: center;
  background: linear-gradient(145deg, var(--atef-events-navy), var(--atef-events-blue));
  border-color: var(--atef-events-navy);
  border-top-color: var(--atef-events-green);
  color: rgba(255,255,255,.9);
}
.atef-events-card-featured h3 { color: #fff; }
.atef-events-card-featured p { color: rgba(255,255,255,.88); }
.atef-events-featured-label {
  color: #b8e2c8 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .13em;
}
.atef-events-card-featured .wp-block-buttons { margin-top: 14px; }

.atef-events-collaboration { background: var(--atef-events-pale); }
.atef-events-collaboration-panel {
  padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 60px);
  border: 1px solid #d8e5ec;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%);
  box-shadow: 0 12px 34px rgba(20,45,78,.06);
  text-align: center;
}
.atef-events-collaboration-panel .atef-events-kicker { color: #548b6d; }
.atef-events-collaboration-panel .atef-events-section-title { max-width: 760px; margin-inline: auto !important; }
.atef-events-collaboration-text {
  max-width: 760px;
  margin-inline: auto;
  color: #4c5d6d;
  font-size: 17px;
}
.atef-events-collaboration-buttons { justify-content: center; margin-top: 25px !important; }
.atef-events-form-placeholder {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--atef-events-border);
  border-radius: 14px;
  background: #fff;
}
.atef-events-form-placeholder p { margin-bottom: 0; }

@media (max-width: 960px) {
  .atef-events-card-grid { flex-wrap: wrap; }
  .atef-events-card-grid > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
  .atef-events-card-grid-bottom > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}
@media (max-width: 781px) {
  .atef-events-hero { min-height: 0 !important; padding: 72px 20px 66px; }
  .atef-events-hero-title { font-size: clamp(32px, 7.5vw, 44px) !important; }
  .atef-events-hero-text { font-size: 16px; }
  .atef-events-section { padding: 50px 20px; }
  .atef-events-intro { padding-bottom: 24px; }
  .atef-events-formats { padding-top: 14px; }
  .atef-events-card-grid { gap: 16px; }
  .atef-events-card-grid > .wp-block-column,
  .atef-events-card-grid-bottom > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 480px) {
  .atef-events-hero { padding: 60px 17px 54px; }
  .atef-events-hero-title { font-size: 31px !important; }
  .atef-events-section { padding: 42px 17px; }
  .atef-events-card { padding: 22px; }
  .atef-events-button,
  .atef-events-button .wp-block-button__link,
  .atef-events-hero-buttons .wp-block-button,
  .atef-events-hero-buttons .wp-block-button__link,
  .atef-events-collaboration-buttons .wp-block-button,
  .atef-events-collaboration-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
/* ATEF – Landing page SEO Educazione finanziaria in Ticino
   WordPress Gutenberg + GeneratePress Child
   CSS isolato sulle classi atef-seo-* */

:root {
  --atef-seo-navy: #142d4e;
  --atef-seo-blue: #244c73;
  --atef-seo-green: #397c5a;
  --atef-seo-green-light: #b7e2c6;
  --atef-seo-pale: #f4f7f8;
  --atef-seo-text: #344253;
  --atef-seo-border: #dfe7ec;
}

.atef-seo-hero,
.atef-seo-section,
.atef-seo-cta { box-sizing: border-box; width: 100%; max-width: 100%; overflow-wrap: break-word; }
.atef-seo-hero *,
.atef-seo-section *,
.atef-seo-cta * { box-sizing: border-box; }

.atef-seo-hero {
  position: relative;
  isolation: isolate;
  min-height: 500px !important;
  padding: clamp(58px, 7vw, 92px) 24px;
  background-color: var(--atef-seo-navy);
  background-image: linear-gradient(90deg, rgba(20,45,78,.94) 0%, rgba(20,45,78,.88) 52%, rgba(20,45,78,.42) 100%);
  border-bottom: 1px solid var(--atef-seo-border);
}
.atef-seo-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,45,78,.80), rgba(20,45,78,.30));
  pointer-events: none;
}
.atef-seo-hero .wp-block-cover__background { opacity: .48 !important; }
.atef-seo-hero .wp-block-cover__inner-container { width: 100%; position: relative; z-index: 1; }
.atef-seo-hero-inner { width: min(1120px, 100%); margin-inline: auto !important; }
.atef-seo-eyebrow,
.atef-seo-kicker {
  margin: 0 0 12px !important;
  color: var(--atef-seo-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.35px;
  line-height: 1.5;
  text-transform: uppercase;
}
.atef-seo-hero .atef-seo-eyebrow { color: var(--atef-seo-green-light); }
.atef-seo-hero-title {
  max-width: 850px;
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: clamp(35px, 4.7vw, 58px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  text-wrap: balance;
}
.atef-seo-hero-lead {
  max-width: 760px;
  margin: 0 0 14px !important;
  color: rgba(255,255,255,.94) !important;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}
.atef-seo-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px !important; }
.atef-seo-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.atef-seo-btn-primary .wp-block-button__link,
.atef-seo-btn-outline .wp-block-button__link {
  background: #8fc5a3;
  border-color: #8fc5a3;
  color: var(--atef-seo-navy) !important;
}
.atef-seo-btn-primary .wp-block-button__link:hover,
.atef-seo-btn-outline .wp-block-button__link:hover {
  background: #7eb792;
  border-color: #7eb792;
  color: var(--atef-seo-navy) !important;
  transform: translateY(-1px);
}

.atef-seo-section { padding: clamp(42px, 5.2vw, 68px) 24px; color: var(--atef-seo-text); }
.atef-seo-section > .wp-block-heading,
.atef-seo-section h2 {
  max-width: 900px;
  margin: 0 0 16px !important;
  color: var(--atef-seo-navy);
  font-size: clamp(28px, 3.25vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.55px;
  text-wrap: balance;
}
.atef-seo-section p:not(.atef-seo-kicker):not(.atef-seo-card-number) {
  color: var(--atef-seo-text);
  font-size: 16px;
  line-height: 1.75;
}
.atef-seo-section .atef-seo-lead {
  max-width: 920px;
  color: #42576a;
  font-size: clamp(17px, 1.7vw, 20px) !important;
  line-height: 1.7;
}
.atef-seo-intro { background: #fff; }
.atef-seo-audience { background: var(--atef-seo-pale); }
.atef-seo-method { background: #fff; }
.atef-seo-local { background: var(--atef-seo-pale); }
.atef-seo-faq { background: #fff; }

.atef-seo-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch !important;
  margin: 24px 0 0 !important;
}
.atef-seo-card-grid > .wp-block-column { display: flex !important; min-width: 0; margin: 0 !important; width: auto !important; flex: initial !important; }
.atef-seo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 2.4vw, 29px);
  border: 1px solid var(--atef-seo-border);
  border-top: 4px solid var(--atef-seo-green);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20,45,78,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.atef-seo-card-blue { border-top-color: var(--atef-seo-blue); }
.atef-seo-card-green { border-top-color: var(--atef-seo-green); }
.atef-seo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,45,78,.09); }
.atef-seo-card-number { margin: 0 0 12px !important; color: var(--atef-seo-green) !important; font-size: 10px !important; font-weight: 800; letter-spacing: 1.1px; }
.atef-seo-card h3,
.atef-seo-method-card h3 { color: var(--atef-seo-navy); font-size: 21px; line-height: 1.3; margin: 0 0 12px !important; }
.atef-seo-card p:last-child,
.atef-seo-method-card p:last-child { margin-bottom: 0; }

.atef-seo-method-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 !important; }
.atef-seo-method-grid > .wp-block-column { min-width: 0; margin: 0 !important; width: auto !important; flex: initial !important; }
.atef-seo-method-card { height: 100%; padding: 24px; border: 1px solid var(--atef-seo-border); border-radius: 12px; background: #fbfcfd; }
.atef-seo-method-card h3 { font-size: 19px; }

.atef-seo-faq-item {
  margin: 12px 0;
  padding: 18px 20px;
  border: 1px solid var(--atef-seo-border);
  border-radius: 10px;
  background: #fff;
}
.atef-seo-faq-item summary { color: var(--atef-seo-navy); font-weight: 750; line-height: 1.5; cursor: pointer; }
.atef-seo-faq-item p { margin: 12px 0 0 !important; }

.atef-seo-cta {
  padding: clamp(44px, 6vw, 72px) 24px;
  background: var(--atef-seo-navy);
  text-align: center;
}
.atef-seo-cta .atef-seo-kicker { color: var(--atef-seo-green-light); }
.atef-seo-cta h2 { max-width: 850px; margin: 0 auto 17px !important; color: #fff; font-size: clamp(28px, 3.3vw, 41px); line-height: 1.2; text-wrap: balance; }
.atef-seo-cta p:not(.atef-seo-kicker) { max-width: 780px; margin: 0 auto 12px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.75; }
.atef-seo-cta .atef-seo-buttons { justify-content: center; }
.atef-seo-cta .atef-seo-btn-primary .wp-block-button__link,
.atef-seo-cta .atef-seo-btn-outline .wp-block-button__link {
  background: #8fc5a3;
  border-color: #8fc5a3;
  color: var(--atef-seo-navy) !important;
}
.atef-seo-cta .atef-seo-btn-primary .wp-block-button__link:hover,
.atef-seo-cta .atef-seo-btn-outline .wp-block-button__link:hover {
  background: #7eb792;
  border-color: #7eb792;
  color: var(--atef-seo-navy) !important;
}

.atef-seo-hero a:focus-visible,
.atef-seo-section a:focus-visible,
.atef-seo-cta a:focus-visible { outline: 3px solid #79bd94; outline-offset: 3px; }

@media (max-width: 980px) {
  .atef-seo-card-grid, .atef-seo-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .atef-seo-hero { min-height: 0 !important; padding: 64px 20px; }
  .atef-seo-hero-title { font-size: clamp(32px, 7.8vw, 44px) !important; }
  .atef-seo-section { padding: 42px 20px; }
  .atef-seo-card-grid, .atef-seo-method-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .atef-seo-card-grid > .wp-block-column { width: 100% !important; }
}
@media (max-width: 480px) {
  .atef-seo-hero { padding: 54px 17px; }
  .atef-seo-hero-title { font-size: 31px !important; letter-spacing: -.5px; }
  .atef-seo-hero-lead { font-size: 16px; }
  .atef-seo-section { padding: 36px 17px; }
  .atef-seo-section > .wp-block-heading, .atef-seo-section h2 { font-size: 27px; }
  .atef-seo-card, .atef-seo-method-card { padding: 21px; }
  .atef-seo-buttons .wp-block-button, .atef-seo-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .atef-seo-card, .atef-seo-btn .wp-block-button__link { transition: none; }
  .atef-seo-card:hover, .atef-seo-btn .wp-block-button__link:hover { transform: none; }
}
