/*
 * Override globali per il sito statico (versione IT).
 * Regole CSS: sopravvivono ai re-render di Vue, quindi sono il posto
 * corretto per modifiche visive (font, colori, tipografia, spaziature).
 */

/* ------------------------------------------------------------------ */
/* Font: Figtree (self-hosted) - alternativa moderna e vicina a ProximaSoft */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree/Figtree-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree/Figtree-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree/Figtree-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree/Figtree-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

*,
*::before,
*::after {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* il frontend forza ProximaSoft (!important) sui contenuti: lo sovrascriviamo */
main .text-wrapper,
main .text-wrapper * {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ------------------------------------------------------------------ */
/* Colori: verde (0,128,0) e nero                                      */
/* ------------------------------------------------------------------ */
main {
  color: #000000;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  color: #008000;
}

/* neutralizza i colori/font inline del contenuto CMS (blu, Tahoma, ...) */
main .text-wrapper [style*="color"] {
  color: inherit !important;
}
main .text-wrapper [style*="font-family"] {
  font-family: inherit !important;
}
main .text-wrapper [style*="background-color"] {
  background-color: transparent !important;
}

/* link nel contenuto */
main .text-wrapper a {
  color: #008000;
  text-decoration: underline;
  text-underline-offset: 2px;
}
main .text-wrapper a:hover {
  color: #005900;
}

/* ------------------------------------------------------------------ */
/* Tipografia dei contenuti                                            */
/* ------------------------------------------------------------------ */
main .text-wrapper,
main .text-wrapper p,
main .text-wrapper li,
main .text-wrapper ul,
main .text-wrapper ol,
main .text-wrapper div,
main .text-wrapper blockquote {
  color: #000000;
}

main .text-wrapper {
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

main .text-wrapper p,
main .text-wrapper li,
main .text-wrapper ul,
main .text-wrapper ol,
main .text-wrapper blockquote {
  line-height: 1.55;
}

main .text-wrapper p {
  margin: 0 0 0.7em !important;
}

/* frase guida / occhiello nei contenuti */
main .text-wrapper .lead {
  margin: 0 0 1.1rem !important;
  color: #008000;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
}

/* Pagina Storia: occhiello + fasi temporali */
main h2.page-eyebrow {
  margin: 0 0 0.55rem !important;
  padding-top: 1.1rem;
  color: #008000;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
main h2.phase-title,
main .text-wrapper h2.phase-title {
  margin: 2.2rem 0 0.55rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #b3debf;
  color: #008000;
  font-size: 1.35rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
main h2.phase-title:first-child,
main .text-wrapper h2.phase-title:first-child {
  margin-top: 0 !important;
}
main .text-wrapper h3.activity-title {
  margin: 1.7rem 0 0.4rem !important;
  color: #008000;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

/* Elenco finalità / obiettivi */
main .text-wrapper .finalita-list {
  margin: 1.1rem 0 1.4rem !important;
  padding-left: 1.4rem;
}
main .text-wrapper .finalita-list li {
  margin: 0.65rem 0 !important;
  padding-left: 0.2rem;
  line-height: 1.5;
}
main .text-wrapper .finalita-list strong {
  color: #008000;
}

/* ------------------------------------------------------------------ */
/* FAQ ad accordion (pagina agevolazioni)                              */
/* ------------------------------------------------------------------ */
main .faq-subtitle {
  margin: 0 0 1.1rem !important;
  color: #525252;
  font-weight: 600;
}
main .faq {
  display: grid;
  gap: 0.6rem;
  margin: 0.4rem 0 2.2rem;
  max-width: 900px;
}
main .faq-item {
  border: 1px solid #b3debf;
  border-radius: 0.75rem;
  background-color: #f3faf5;
  overflow: hidden;
}
main .faq-q {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  color: #000000;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}
main .faq-q::-webkit-details-marker {
  display: none;
}
main .faq-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background-color: #008000;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}
main .faq-text {
  flex: 1 1 auto;
}
main .faq-q::after {
  content: "+";
  flex: 0 0 auto;
  color: #008000;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}
main .faq-item[open] .faq-q {
  background-color: #e6f4ea;
}
main .faq-item[open] .faq-q::after {
  content: "−";
}
main .faq-a {
  padding: 0.2rem 1.1rem 1rem;
  color: #000000;
  line-height: 1.55;
}
main .faq-a p {
  margin: 0 0 0.6rem !important;
}
main .faq-a > :last-child {
  margin-bottom: 0 !important;
}
main .faq-a ul {
  margin: 0.3rem 0 0.4rem !important;
}
main .faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0;
  font-size: 0.95rem;
}
main .faq-table th {
  padding: 0.6rem 0.8rem;
  background-color: #008000;
  color: #ffffff;
  text-align: left;
  font-weight: 700;
}
main .faq-table td {
  padding: 0.55rem 0.8rem;
  border: 1px solid #b3debf;
  color: #000000;
  vertical-align: top;
}
main .faq-table tbody tr:nth-child(even) td {
  background-color: #f3faf5;
}

/* ------------------------------------------------------------------ */
/* Elenco recapiti (pagina segreteria)                                 */
/* ------------------------------------------------------------------ */
main .contact-list {
  list-style: none !important;
  margin: 1rem 0 1.8rem !important;
  padding: 0;
  max-width: 900px;
  display: grid;
  gap: 0.5rem;
}
main .contact-list li {
  display: flex !important;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 !important;
  padding: 0.8rem 1.1rem;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 0.6rem;
  list-style: none !important;
}
main .contact-list .k {
  flex: 0 0 10.5rem;
  color: #008000;
  font-weight: 700;
}
main .contact-list .v {
  flex: 1 1 auto;
  color: #000000;
}
main .contact-list a {
  color: #008000;
  text-decoration: underline;
}
@media (max-width: 640px) {
  main .contact-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
  main .contact-list .k {
    flex: none;
  }
}

/* ------------------------------------------------------------------ */
/* Schede dei medici (pagina comitato scientifico)                     */
/* ------------------------------------------------------------------ */
main .medici-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 0.5rem;
}
main .medici-grid .medico-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 0.85rem;
}
main .medici-grid .medico-avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
main .medici-grid .medico-nome {
  margin: 0 !important;
  color: #008000;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}
main .medici-grid .medico-ruolo {
  margin: 0.2rem 0 0 !important;
  color: #525252;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
main .medici-grid .medico-sede {
  margin: 0.3rem 0 0 !important;
  color: #344054;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* Pagina 5x1000: nome associazione e codice fiscale in evidenza       */
/* ------------------------------------------------------------------ */
main .text-wrapper .assoc-name {
  margin: 0 0 0.6rem !important;
}
main .text-wrapper .assoc-name strong {
  color: #008000;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}
main .text-wrapper .cf-highlight {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.4rem 0 1.2rem !important;
  padding: 0.9rem 1.3rem;
  background-color: #e6f4ea;
  border: 1px solid #b3debf;
  border-radius: 0.75rem;
  color: #000000;
  font-weight: 700;
}
main .text-wrapper .cf-highlight strong {
  color: #008000;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

/* ------------------------------------------------------------------ */
/* Box coordinate bancarie (pagina iscrizioni)                         */
/* ------------------------------------------------------------------ */
main .text-wrapper .iban-box {
  margin: 1rem 0 0 !important;
  padding: 1.1rem 1.25rem;
  max-width: 900px;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 0.85rem;
}
main .text-wrapper .iban-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
main .text-wrapper .iban-label {
  color: #008000;
  font-weight: 800;
  letter-spacing: 0.05em;
}
main .text-wrapper .iban-value {
  color: #000000;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
main .text-wrapper .iban-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background-color: #008000;
  color: #ffffff;
  border: 0;
  border-radius: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
main .text-wrapper .iban-copy:hover {
  background-color: #006400;
}
main .text-wrapper .iban-meta {
  margin: 0.25rem 0 0 !important;
  color: #344054;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------------ */
/* Box informativi (pagina telefono amico)                             */
/* ------------------------------------------------------------------ */
main .info-box {
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.6rem;
  max-width: 900px;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 1rem;
}
main .info-box .phase-title {
  margin-top: 0 !important;
}
main .info-box--contact {
  background-color: #e6f4ea;
}
main .info-box .contact-lead {
  margin: 0 0 0.7rem !important;
  color: #000000;
}
main .info-box .contact-line {
  margin: 0 0 0.35rem !important;
  color: #000000;
  font-weight: 600;
}
main .info-box .contact-line a {
  color: #008000;
  font-weight: 800;
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Pagine /it/isc-*: elementi ripresi da it/ass-cosa-facciamo          */
/* ------------------------------------------------------------------ */
/* titoli di sezione (content-chapter) con lo stile di .phase-title */
body.isc-page main section[component_name="page.content-chapter"] h3 {
  margin: 2.2rem 0 0.55rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #b3debf;
  color: #008000;
  font-size: 1.35rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
/* frase/domanda guida in apertura (come l'eyebrow verde) */
body.isc-page
  main
  section[component_name="page.content-intro"]
  .text-wrapper
  > p:first-of-type:has(> strong:only-child)
  strong {
  color: #008000;
}

/* scala titoli bilanciata (h1 > h2 > h3 > h4) */
main h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}
main h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}
main h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
main h4 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.375rem) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
main h5 {
  font-size: 1.0625rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
main h6 {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

/* spaziatura titoli: più spazio sopra che sotto */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  margin-top: 0;
  margin-bottom: 0.45em;
}
main .text-wrapper h2,
main .text-wrapper h3,
main .text-wrapper h4,
main .text-wrapper h5,
main .text-wrapper h6 {
  margin-top: 1.4em;
}
main .text-wrapper > :first-child {
  margin-top: 0;
}

/* ritmo verticale tra blocchi pagina (più stretto e uniforme) */
main section[component_name]:not([component_name="page.page-link-line"]) {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
@media (min-width: 1024px) {
  main section[component_name]:not([component_name="page.page-link-line"]) {
    margin-top: 3.5rem !important;
    margin-bottom: 3.5rem !important;
  }
}

/* elimina le colonne vuote dei blocchi (spazi "fantasma") */
main section[component_name] div:empty {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Box download PDF (blocchi con "Apri il PDF")                        */
/* ------------------------------------------------------------------ */
main div:has(> .text-wrapper.col-span-9) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background-color: #e6f4ea;
  border: 1px solid #b3debf;
  border-radius: 0.75rem;
}

/* titolo del box */
main div:has(> .text-wrapper.col-span-9) > .text-wrapper.col-span-9 {
  flex: 1 1 auto;
  padding-top: 0;
  color: #000000;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* colonna del bottone */
main div:has(> .text-wrapper.col-span-9) > .col-span-3 {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  justify-content: flex-end;
}

/* bottone "Apri il PDF" */
main div:has(> .text-wrapper.col-span-9) a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  background-color: #008000;
  color: #ffffff !important;
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}
main div:has(> .text-wrapper.col-span-9) a * {
  color: #ffffff !important;
}
main div:has(> .text-wrapper.col-span-9) a::after {
  content: "↗";
  font-weight: 700;
}
main div:has(> .text-wrapper.col-span-9) a:hover {
  background-color: #006400;
}

@media (max-width: 1023px) {
  main div:has(> .text-wrapper.col-span-9) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  main div:has(> .text-wrapper.col-span-9) > .text-wrapper.col-span-9 {
    flex: 0 0 auto;
  }
  main div:has(> .text-wrapper.col-span-9) > .col-span-3 {
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------------ */
/* Liste (punti elenco)                                                */
/* ------------------------------------------------------------------ */
main ul,
main ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
main ul {
  list-style: disc outside;
}
main ul ul {
  list-style: circle outside;
  margin: 0.5rem 0;
}
main ol {
  list-style: decimal outside;
  padding-left: 1.75rem;
}
main li {
  margin: 0.4rem 0;
  padding-left: 0.25rem;
}
main li::marker {
  color: #008000;
}
main li > p {
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Enfasi: grassetto, corsivo, sottolineato                            */
/* ------------------------------------------------------------------ */
main strong,
main b {
  font-weight: 700;
}
main em,
main i {
  font-style: italic;
}
main u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Utility di rientro (da applicare ai paragrafi che lo richiedono)    */
/* ------------------------------------------------------------------ */
main .indent {
  margin-left: 2rem !important;
}
main .indent-sm {
  margin-left: 1rem !important;
}
main .indent-lg {
  margin-left: 4rem !important;
}

@media (max-width: 1023px) {
  main .indent,
  main .indent-sm {
    margin-left: 1rem !important;
  }
  main .indent-lg {
    margin-left: 1.5rem !important;
  }
}

/* ------------------------------------------------------------------ */
/* Home - sezione "Unisciti a Noi": logo ridotto e centrato            */
/* ------------------------------------------------------------------ */
img[src*="logo_airisc_site_trasp_a9029032ba.png"] {
  max-width: 300px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Home - blocco "A 360°": immagini/logo degli item */
main section[component_name="page.slider-cards"] .swiper-slide img {
  height: 64px !important;
  width: auto !important;
  max-width: 190px;
  object-fit: contain;
  border-radius: 8px;
}

/* Home - blocco "Unisciti a Noi": titolo a tutta larghezza, logo nel testo */
main .unisciti-row {
  display: block !important;
}
main .unisciti-title {
  width: 100%;
  margin: 0 0 1.5rem !important;
}
main .unisciti-textcol {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}
main .unisciti-logo {
  float: left;
  width: 260px;
  max-width: 45%;
  height: auto;
  margin: 0.25rem 1.5rem 1rem 0 !important;
  border-radius: 0.75rem;
}
@media (max-width: 640px) {
  main .unisciti-logo {
    float: none;
    display: block;
    width: 220px;
    max-width: 60%;
    margin: 0 auto 1rem !important;
  }
}

/* ------------------------------------------------------------------ */
/* Home - box promozionali (Webinar SAG, Parliamo di Ma.R.E., ...)     */
/* Usati da home-webinar.js / home-mare.js                             */
/* ------------------------------------------------------------------ */
main .promo-container {
  max-width: 1476px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 1024px) {
  main .promo-container {
    padding: 0 2rem;
  }
}

main .promo-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #b3debf;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

main .promo-media {
  position: relative;
  min-height: 300px;
  background-color: #001b34;
}
main .promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* variante per poster verticali: mostra l'intera immagine su fondo scuro */
main .promo-media--contain img {
  object-fit: contain;
  object-position: center;
}
/* variante per loghi: immagine contenuta e centrata su fondo chiaro */
main .promo-media--logo {
  background-color: #eaf4f9;
}
main .promo-media--logo img {
  object-fit: contain;
  object-position: center;
  padding: 1.75rem;
}

main .promo-body {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.25rem;
}

main .promo-eyebrow {
  margin: 0 0 0.5rem !important;
  color: #f58c37;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

main .promo-title {
  margin: 0 0 0.85rem !important;
  color: #008000;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

main .promo-text {
  margin: 0 0 1.5rem !important;
  color: #000000;
  line-height: 1.55;
}
main .promo-text strong {
  color: #008000;
}
main .promo-text + .promo-text {
  margin-top: -0.5rem !important;
}

main .promo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: auto;
}

main a.promo-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background-color: #008000;
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease-in-out;
}
main a.promo-btn::after {
  content: "↗";
  margin-left: 0.45rem;
  font-weight: 700;
}
main a.promo-btn:hover {
  background-color: #006400;
}
/* call-to-action evidenziata (es. registrazione all'evento) */
main a.promo-btn--cta {
  padding: 0.75rem 1.5rem;
  background-color: #f58c37;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
main a.promo-btn--cta:hover {
  background-color: #e07a24;
}

main a.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #000000 !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out;
}
main a.promo-link svg {
  display: block;
  flex: 0 0 auto;
}
main a.promo-link:hover {
  color: #008000 !important;
}

/* link YouTube (teniamo il rosso del logo) */
main a.promo-link--yt:hover {
  color: #cc0000 !important;
}

@media (max-width: 900px) {
  main .promo-box {
    grid-template-columns: 1fr;
  }
  main .promo-media {
    min-height: 0;
    max-height: 300px;
  }
  main .promo-media img {
    max-height: 300px;
  }
  main .promo-media--contain img {
    max-height: 360px;
  }
  main .promo-body {
    padding: 1.5rem 1.35rem;
  }
}

/* variante con colonna immagine ridotta a ~2/3 e testo più ampio (desktop) */
@media (min-width: 901px) {
  main .promo-box--small-media {
    grid-template-columns: minmax(0, 31fr) minmax(0, 69fr);
  }
  main .promo-box--small-media .promo-media {
    background-color: #ffffff;
  }
  main .promo-box--small-media .promo-media img {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Blocco "Ritorna a ... / Continua con ..." (page.page-link-line)     */
/* ------------------------------------------------------------------ */
.page-link-line {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0.75rem 0.5rem;
  font-weight: 800;
}

.page-link-line > div {
  flex: 1;
}

/* "Ritorna a" a sinistra, "Continua con" a destra */
.page-link-line > div:first-child {
  text-align: left;
}

.page-link-line > div:last-child {
  text-align: right;
}

/* il link diventa solo un contenitore: niente aspetto bottone */
.page-link-line a.btn-link {
  display: block;
  width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-align: inherit;
  white-space: normal;
}

/* nascondi il testo originale del componente ("Ritorna a \"X\"") */
.page-link-line a.btn-link > span {
  font-size: 0;
  line-height: 0;
  white-space: normal;
}

/* label arancione: "Ritorna a" / "Continua con" */
.page-link-line a.btn-link > span::before {
  content: attr(data-prefix);
  display: block;
  margin-bottom: 0.5rem;
  color: #f58c37;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 700;
}

/* bottone con il nome della pagina */
.page-link-line a.btn-link > span::after {
  content: attr(data-name);
  display: inline-block;
  max-width: 100%;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #f58c37;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: normal;
}

@media (max-width: 1023px) {
  /* restano sulla stessa riga, ma con meno spazio tra i due blocchi */
  .page-link-line {
    gap: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Elenco delle Giornate di Studio (pagina att-giornate-studio)        */
/* ------------------------------------------------------------------ */
main .giornate-intro {
  margin: 0 0 0.9rem;
  color: #000000;
}

main .giornate-intro:last-of-type {
  margin-bottom: 1.6rem;
}

main .giornate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
}

main .giornate-list > li {
  list-style: none;
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

main .giornate-list .g-head {
  margin: 0;
  line-height: 1.3;
}
main .giornate-list .g-year {
  color: #008000;
  font-weight: 800;
}
main .giornate-list .g-edition {
  color: #008000;
  font-weight: 700;
}
main .giornate-list .g-head sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
}

main .giornate-list .g-title {
  margin: 0;
  color: #000000;
  font-weight: 700;
}

main .giornate-list .g-place {
  margin: 0;
  color: #525252;
  font-weight: 600;
}

main .giornate-list .g-speakers {
  margin: 0.15rem 0 0;
  color: #000000;
  font-size: 0.9rem;
  line-height: 1.45;
}
main .giornate-list .g-speakers strong {
  color: #008000;
}

main .giornate-list .g-button {
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.5rem 0.95rem;
  background-color: #008000;
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease-in-out;
}
main .giornate-list .g-button:hover {
  background-color: #006400;
}

/* ------------------------------------------------------------------ */
/* Pagina di dettaglio di una Giornata di Studio                       */
/* ------------------------------------------------------------------ */
main .giornata-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.55rem 1rem;
  background-color: #f3faf5;
  border: 1px solid #b3debf;
  border-radius: 0.5rem;
  color: #008000 !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease-in-out;
}
main .giornata-back:hover {
  background-color: #e6f4ea;
}

main h3.giornata-edition {
  margin: 0 0 0.4rem !important;
  color: #008000;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
}

main h1.giornata-title {
  margin: 0 0 0.9rem !important;
  color: #008000;
}

main .giornata-subtitle {
  margin: 0 0 0.4rem !important;
  color: #008000;
  font-size: 1.125rem;
  font-weight: 700;
}

main .giornata-meta {
  margin: 0 0 0.25rem !important;
  color: #525252;
  font-weight: 600;
}

main .program {
  width: 100%;
  max-width: 900px;
  margin-top: 1.75rem;
  color: #000000;
  line-height: 1.55;
}
main .program p,
main .program li,
main .program span {
  color: #000000;
}

main .program-session {
  margin: 2.4rem 0 0.5rem !important;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #b3debf;
  color: #008000;
  font-size: 1.35rem !important;
  line-height: 1.25 !important;
}
main .program .program-session:first-child {
  margin-top: 0 !important;
}

main .session-moderator {
  margin: 0 0 1.25rem !important;
  color: #525252;
  font-style: italic;
  font-weight: 600;
}

main .program-item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 1.15rem 0 0.15rem !important;
  font-weight: 600;
  line-height: 1.45;
}
main .program-item .time {
  flex: 0 0 3.6rem;
  color: #008000 !important;
  font-weight: 800;
}
main .program-item .label {
  flex: 1 1 auto;
}

main .program-speaker {
  margin: 0.1rem 0 0.95rem 4.45rem !important;
  padding-left: 0.9rem;
  border-left: 3px solid #b3debf;
  color: #525252;
  font-style: italic;
  line-height: 1.45;
}

main .program-note {
  margin: 0.1rem 0 0.9rem 4.45rem !important;
  color: #525252;
  font-style: italic;
}

main .program-list {
  margin: 0.2rem 0 1rem 4.45rem !important;
  padding-left: 1.2rem;
}
main .program-list li {
  margin: 0.2rem 0;
}

/* ------------------------------------------------------------------ */
/* Pagina contatti: intestazione allineata a sinistra                  */
/* ------------------------------------------------------------------ */
main div:has(> h1#contact-page) {
  grid-column: 1 / -1;
  max-width: 900px;
  text-align: left;
}
main h1#contact-page {
  text-align: left;
}
main div:has(> h1#contact-page) > div {
  color: #000000;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  text-align: left;
}
main div:has(> h1#contact-page) > div p {
  color: #000000;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Consenso privacy nel form contatti                                  */
/* ------------------------------------------------------------------ */
.privacy-consent {
  margin-top: 1.5rem;
  text-align: left;
  color: #344054;
  font-size: 0.95rem;
  line-height: 1.45;
}
.privacy-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}
.privacy-consent__row input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #008000;
}
.privacy-consent__note {
  margin-top: 0.45rem;
  color: #525252;
  font-size: 0.83rem;
  line-height: 1.4;
}
.privacy-consent a {
  color: #008000;
  text-decoration: underline;
}

/* Pagine di dettaglio standalone (senza idratazione Nuxt) */
body.standalone #__nuxt > div {
  padding-top: 96px;
}
@media (min-width: 768px) {
  body.standalone #__nuxt > div {
    padding-top: 130px;
  }
}
@media (min-width: 1024px) {
  body.standalone #__nuxt > div {
    padding-top: 163px;
  }
}
