/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


  
html {
    font-size: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #222;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HERO */
.hero-content .hero-titolo {
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-content .hero-divider {
  width: 60px;
  height: 3px;
  background-color: #8B1A1A;
  margin-bottom: 22px;
}

.hero-content .hero-testo {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-testo.home {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-content .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-content .btn-fondazione {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.hero-content .btn-primario:hover {
  background-color: #a52020;
  border-color: #a52020;
  color: #ffffff !important;
}

.hero-content .btn-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
}

.hero-content .btn-outline:hover {
  border-color: #ffffff !important;
  color: #ffffff !important;
}


/* LOGO */
.logo {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  line-height: 1 !important;
}

.logo i {
  font-size: 25px;
  letter-spacing: 1px;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo .plus {
  font-size: 17px;
  letter-spacing: -1px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo .uno {
  font-size: 22px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}
/* LOGO HERO */
.logo-hero {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  line-height: 1 !important;
}

.logo-hero i {
  font-size: 85px;
  letter-spacing: 4px;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo-hero .plus {
  font-size: 55px;
  letter-spacing: -2px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo-hero .uno {
  font-size: 75px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}


/* LOGO TITOLO */
.logo-titolo {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  line-height: 1 !important;
}

.logo-titolo i {
  font-size: 50px;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo-titolo .plus {
  font-size: 35px;
  letter-spacing: -1px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.logo-titolo .uno {
  font-size: 43px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

/* testi e titoli */
.label {
  font-size: 12px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #8B1A1A !important;
  font-weight: 600 !important;
  margin-bottom: 25px !important;
}
/* WRAP */
.wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.titolo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #1C1C1C !important;
  margin-bottom: 22px !important;
}

.divider {
  width: 60px !important;
  height: 2px !important;
  background: #8B1A1A !important;
  margin: 20px 0 25px !important;
}
.testo {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 14px !important;
}

.btn-link {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  color: #000 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-bottom: 2px !important;
}
.btn-link.red {
  color: #8B1A1A !important;
}

.btn-link:hover {
  color: #8B1A1A !important;
}
/* HOME */
.home-testo {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 14px !important;
  /*text-align: justify;*/
  font-weight: 400;
}

/* Lavorare con noi */

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.app-card {
    padding: 0 28px;
    border-right: 1px solid #e0ddd6;
}

.app-card:first-child {
    padding-left: 0;
}

.app-card:last-child {
    padding-right: 0;
    border-right: none;
}

.app-data-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
}

.app-giorno {
    font-family: Georgia, serif;
    font-size: 2.3rem;    color: #8B1A1A;
    line-height: 1;
}

.app-mese {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8B8580;
}

.app-titolo {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.app-label-temi {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8B8580;
    margin-bottom: 10px;
}

.app-temi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-temi li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 9px;
    line-height: 1.5;
    color: #555;
    font-size: 0.9rem;
}

.app-temi li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #8B1A1A;
}

/* CTA SECTION*/
.cta-sostieni {
    background: #E8EDF2;
    padding: 30px;
}

.cta-sostieni-titolo {
    font-family: Georgia, serif;
    font-size: 45px;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 56px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
}

.cta-col {
    padding: 0 48px;
    text-align: center;
}

.cta-col:first-child {
    padding-left: 0;
    border-right: 1px solid rgba(0,0,0,0.12);
}

.cta-col:last-child {
    padding-right: 0;
}

.cta-icona {
    width: 75px;
    height: 75px;
    border: 1px solid #8B1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cta-icona span {
    font-family: Georgia, serif;
    color: #8B1A1A;
}

.cta-col-titolo {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.cta-col-testo {
    font-size: 0.92rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 26px;
}

.cta-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid #8B1A1A;
    transition: background-color 0.25s ease, color 0.25s ease !important;
}

.cta-btn-outline {
    background: transparent;
    color: #8B1A1A;
}

.cta-btn-pieno {
    background: #8B1A1A;
    color: #fff;
}

/* 5×1000: da bianco a rosso */
.cta-btn-outline:hover,
.cta-btn-outline:focus {
  background: #8B1A1A !important;
  color: #ffffff !important;
  border-color: #8B1A1A !important;
}

/* Donazione: da rosso a bianco */
.cta-btn-pieno:hover,
.cta-btn-pieno:focus {
  background: #ffffff !important;
  color: #8B1A1A !important;
  border-color: #8B1A1A !important;
}

/* GALLERIA ARCHIVIO HOME */

.arch-gallery-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 20px !important;
  padding: 0 25px 0 0 !important;
}

.arch-img {
  width: 100% !important;
  filter: grayscale(10%) !important;
  height: 200px !important;
  border: 1px solid #bbb !important;
  border-radius: 3px !important;
}

/* NETWORK */

.net-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.net-item::before {
    content: "";
    display: block;
    width: 33%;
    height: 2px;
    background: #8B1A1A;
    margin-bottom: 20px;
    margin-left: 0;
}

.net-item {
  padding: 20px 20px !important;
  position: relative !important;
}

/* Network: immagini con la stessa proporzione */
.net-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 7.4 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.net-nome {
  font-family: "Poppins", sans-serif !important;
  font-size: 23px !important;
  color: #1C1C1C !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  padding: 18px 0 5px;
}

.net-desc {
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #222 !important;
  margin-bottom: 20px !important;
}

.net-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  color: #000 !important;
  text-decoration: none !important;
  padding-bottom: 2px !important;
}
.net-link:hover {
  color: #8B1A1A !important;
}

 /* BOTTOM + FOOTER */
#sp-bottom {
  background: #1B2A33 !important;
  padding: 50px 0 10px;
}

#sp-bottom .container-inner {
  padding: 40px 0;
  border-top: none;
}

#sp-footer {
  background: #1B2A33;
  padding: 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
#sp-footer .container-inner {
  padding: 5px 0;
  border-top: none;
}
#sp-footer .sp-column {
  text-align: center;
}
#sp-footer .sp-copyright {
  font-size: 11px !important;
  color: rgba(255,255,255,0.35) !important;
  letter-spacing: 0.05em !important;
  font-family: "Poppins", sans-serif !important;
  text-align: center !important;
  font-weight: 300;
}

.f-info {
  font-size: 13px !important;
  line-height: 2 !important;
  color: rgba(255,255,255,0.45) !important;
  font-family: "Poppins", sans-serif !important;
}

.f-info a {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
}

.f-info a:hover {
  color: rgba(255,255,255,0.8) !important;
}

.f-divider {
  width: 32px !important;
  height: 1px !important;
  background: #8B1A1A !important;
  margin: 20px 0 !important;
}

.f-blocco2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
}

.f-col-titolo {
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.5) !important;
  font-weight: 300;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  font-family: 'Poppins', sans-serif;
}

.f-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.f-links a {
  font-size: 13px !important;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  font-weight: 300 !important;
  font-family: "Poppins", sans-serif !important;
}

.f-links a:hover {
  color: #ffffff !important;
}
.f-logo-wrap img {
  height: 55px !important;
  width: auto !important;
  display: block !important;
  margin-bottom: 20px !important;
}

.f-indirizzo {
  text-transform: uppercase !important;
}

.f-links + .f-col-titolo {
  margin-top: 28px !important;
}

/* Copyright */
.copy-np1 {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}
.copy-np1 i {
  font-size: 20px;
  letter-spacing: 2px;
}
.copy-np1 .plus {
  font-size: 13px;
  letter-spacing: -1px;
}
.copy-np1 .uno {
  font-size: 17px;
}
.solo-mobile {
  display: none;
}

/* La Fondazione - TIMELINE */
 .timeline {
  padding-left: 0 !important;
}
.tl-item {
  padding: 1px 0 1px 25px !important;
  border-left: 3px solid #8B1A1A !important;
  margin-bottom: 35px !important;
}
.tl-item:first-child {
  margin-top: 40px;
}
.tl-anno {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  color: #8B1A1A !important;
  display: block !important;
  margin-bottom: 6px !important;
}

.tl-testo {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #333 !important;
  display: block !important;
}

/* La Fondazione - elenco documenti */
.doc {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.doc li {
  border-bottom: 1px solid #E6E2DC !important;
  margin: 0 !important;
  padding: 0 !important;
}
.doc li:first-child {
  border-top: 1px solid #E6E2DC !important;
}
.doc a {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px !important;
  color: #8B1A1A !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  transition: color 0.2s, padding 0.2s;
}
.doc a:hover {
  color: #5E1010 !important;
  padding-left: 6px !important;
}
.doc .doc-formato {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #B8B3AC;
  font-weight: 400;
}
.doc .doc-tendina summary {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px !important;
  color: #8B1A1A !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  list-style: none !important;
  cursor: pointer;
  transition: color 0.2s, padding 0.2s;
  border-bottom: 1px solid #E6E2DC !important;
}
.doc .doc-tendina summary::-webkit-details-marker {
  display: none;
}
.doc .doc-tendina summary:hover {
  color: #5E1010 !important;
  padding-left: 6px !important;
}
.doc .doc-freccia {
  display: inline-block;
  font-size: 9px;
  transition: transform 0.2s;
}
.doc .doc-tendina[open] .doc-freccia {
  transform: rotate(180deg);
}
.doc .doc-anni a {
  font-size: 13px !important;
  padding: 10px 2px 10px 18px !important;
}
.doc .doc-anni a:hover {
  padding-left: 24px !important;
}
.doc-nota {
  margin-top: 3em !important;
  font-size: 0.7em !important;
  color: #666 !important;
}
.doc-nota a {
  color: #8B1A1A !important;
}

/* La Fondazione: disegno della sede */
.img-sede {
  float: left;
  width: 40%;
  height: auto;
  margin: 6px 45px 15px 0;
}

/* Archivio: dipinti di Aldo Ratti */
.ratti-galleria {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 70px;
}
.ratti-galleria img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid #ddd;
}

/* MENU */
.sp-megamenu-parent > li > a {
  font-size: 17px !important;
}
.sp-menu-item.active > a {
    position: relative;
}

.sp-menu-item.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    height: 1px;
    background: #8B1A1A;
}

.sp-megamenu-parent > li:last-child > a {
  padding: 0px 15px;
}

/* ATTIVITA */

.att-titolo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px !important;
  color: #1C1C1C !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
}
/* Attività: schede dei siti */
.web-card {
  border: 1px solid #E0DCD5;
  padding: 16px;
  margin-bottom: 30px;
}
.web-card img {
  display: block;
  width: 100%;
  height: auto;
}
.web-card p {
  margin: 14px 0 0;
}

/* immagine archivio */
.img-400 .sppb-addon-single-image-container {
  display: block !important;
  width: 100% !important;
}

.img-400 img.sppb-img-responsive {
  display: block !important;
  width: 100% !important;
  height: 360px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.testo a.link-rel {
  color: #8B1A1A !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(139, 26, 26, 0.35);
  font-weight: 500;
}
.testo a.link-rel:hover {
  border-bottom-color: #8B1A1A;
}

/* RIVISTA */
.link-rivista {
  margin: 30px 0 !important;
}

/* sostienici */
.cf-box {
  background: #E8EDF2 !important;
  padding: 30px 0;
  margin: 30px auto;
  text-align: center;
}

.cf-label {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #222 !important;
  font-weight: 400 !important;
}

.cf-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 45px !important;
  color: #1C1C1C !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
}
.agev-label {
  font-size: 13px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #222 !important;
  font-weight: 700 !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
}
.steps {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.step {
  background: #E8EDF2 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  padding: 28px !important;
  position: relative !important;
}

.step::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 48px !important;
  height: 3px !important;
  background: #8B1A1A !important;
}

.step-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px !important;
  color: #1C1C1C !important;
  line-height: 1 !important;
  margin-bottom: 10px !important;
}

.step-testo {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #222 !important;
  letter-spacing: 0.2px;
}
.don-box {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  padding: 28px !important;
  position: relative !important;
  margin: 35px 0!important;
}

.don-box::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 60px !important;
  height: 3px !important;
  background: #8B1A1A !important;
}

.don-titolo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px !important;
  color: #1C1C1C !important;
  margin-bottom: 20px !important;
}

.don-riga {
  padding: 12px 0 !important;
  border-bottom: 0.5px solid rgba(0,0,0,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.don-riga:last-of-type {
  border-bottom: none !important;
}

.don-tipo {
  font-size: 13px !important;
  text-transform: uppercase !important;
  color: #222 !important;
  font-weight: 300 !important;
  letter-spacing: 0.4px;
}
.don-val {
  font-size: 15px !important;
  color: #222 !important;
  line-height: 1.6 !important;
  margin-top: 2px !important;
  letter-spacing: 0.2px;

}

.don-nota {
  font-size: 11px !important;
  color: #222 !important;
  line-height: 1.6 !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 0.5px solid rgba(0,0,0,0.08) !important;
}

/* Voce di menu Rivista */
.sp-megamenu-parent > li > a.menu-rivista {
  text-transform: none !important;
}

/* BTN */

.btn-fondazione {
  display: inline-flex !important;
  align-items: center !important;
  padding: 13px 24px !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.btn-primario {
  background-color: #8B1A1A !important;
  color: #ffffff !important;
  border: 2px solid #8B1A1A !important;
}

.btn-primario:hover {
  background-color: #a52020 !important;
  color: #ffffff !important;
}
.cover-grid-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 22px !important;
  max-width: 280px !important;
  padding: 25px 0 0 0;
  margin: 0 auto !important;
}
.cover-small {
  width: 100% !important;
  height: auto !important;
  border: 1px solid #ccc !important;
  display: block !important;
}

/* Icona menu mobile */
.burger-icon > span {
  background-color: #1C1C1C !important;
}
/* MENU MOBILE (off-canvas) */
.offcanvas-menu .menu {
  margin-top: 30px !important;
  border-top: 1px solid #E6E2DC;
}
.offcanvas-menu .menu > li > a {
  display: block !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #1C1C1C !important;
  text-transform: none !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid #E6E2DC;
}
.offcanvas-menu .menu > li.active > a,
.offcanvas-menu .menu > li.current > a {
  color: #8B1A1A !important;
  border-left: 3px solid #8B1A1A;
  padding-left: 12px !important;
}
.offcanvas-menu .menu > li > a.menu-rivista {
  text-transform: lowercase !important;
}
.offcanvas-menu .menu > li > a.menu-rivista::first-letter {
  text-transform: uppercase;
}
.oc-contatti {
  margin-top: 40px;
  font-size: 11px;
  line-height: 1.8;
  color: #8B8580;
}
.oc-contatti a {
  color: #8B8580 !important;
  text-decoration: none;
}
.oc-divider {
  width: 32px;
  height: 1px;
  background: #8B1A1A;
  margin-bottom: 12px;
}
/* PAGINE PRIVACY – privacy e cookie policy */
.testo-policy {
  padding: 20px 0 60px !important;
}

.testo-policy .policy-sottotitolo {
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
  color: #888 !important;
  margin: -10px 0 40px !important;
}

.testo-policy h2 {
  font-family: Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #1C1C1C !important;
  margin: 48px 0 16px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
}

.testo-policy h3 {
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #8B1A1A !important;
  margin: 28px 0 10px !important;
}

.testo-policy p,
.testo-policy li {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #444 !important;
}

.testo-policy p {
  margin-bottom: 14px !important;
}

.testo-policy ul {
  padding-left: 20px !important;
  margin-bottom: 18px !important;
}

.testo-policy li {
  margin-bottom: 6px !important;
}

.testo-policy li::marker {
  color: #8B1A1A;
}

.testo-policy a {
  color: #8B1A1A !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.testo-policy a:hover {
  color: #1C1C1C !important;
}

/* tabella cookie */
.testo-policy .policy-tabella {
  overflow-x: auto !important;
  margin: 24px 0 32px !important;
}

.testo-policy table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.testo-policy th {
  background: #F0EDE8 !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #1C1C1C !important;
  text-align: left !important;
  padding: 12px 14px !important;
  border-bottom: 2px solid #8B1A1A !important;
}

.testo-policy td {
  padding: 12px 14px !important;
  line-height: 1.6 !important;
  color: #444 !important;
  vertical-align: top !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

.testo-policy td:first-child {
  font-family: monospace !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

/* riquadro opt-out Matomo */
.testo-policy .policy-box {
  background: #E8EDF2 !important;
  padding: 24px 28px !important;
  margin: 20px 0 32px !important;
  border-left: 3px solid #8B1A1A !important;
}

.testo-policy .policy-data {
  margin-top: 48px !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  color: #999 !important;
}

@media (max-width: 767px) {
  .testo-policy td:first-child {
    white-space: normal !important;
  }
}
/* =========================================
   TABLET (fino a 991px)
   ========================================= */
@media (max-width: 991.98px) {

  /* Hero */
  .hero-content .hero-titolo {
    font-size: 44px;
  }
  .logo-hero i     { font-size: 68px; }
  .logo-hero .plus { font-size: 44px; }
  .logo-hero .uno  { font-size: 60px; }

  /* Titoli */
  .titolo {
    font-size: 32px !important;
  }

  /* Appuntamenti (home) */
  .app-card {
    padding: 0 18px;
  }

  /* CTA Sostieni (home) */
  .cta-sostieni-titolo {
    font-size: 38px;
    margin-bottom: 40px;
  }
  .cta-col {
    padding: 0 32px;
  }

  /* Galleria archivio (home) */
  .arch-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    padding: 0 !important;
  }

  /* Footer */
  .f-blocco2 {
    gap: 28px !important;
  }
}

/* =========================================
   MOBILE (fino a 767px)
   ========================================= */
@media (max-width: 767.98px) {

    /* Header mobile: più respiro attorno al logo */
  #sp-header {
    height: 68px !important;
  }
  #sp-header .logo {
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
  }

  #sp-header .logo img {
    max-height: 52px !important;
    width: auto !important;
  }

     /* Header mobile: margini laterali */
  #sp-header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Hamburger ancorato a destra nell'header */
  #sp-header {
    position: relative !important;
  }
  #sp-header #offcanvas-toggler {
    position: absolute !important;
    right: 12px !important;
    top: 34px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
  #sp-header #sp-logo {
    padding-right: 56px !important;
  }

    /* Hero */
  .hero-content .hero-titolo {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-content .hero-divider {
    width: 40px;
    margin-bottom: 16px;
  }
  .hero-content .hero-testo {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .hero-content .hero-testo.home {
    font-size: 12px;
  }
  .hero-content .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-content .btn-fondazione,
  .btn-fondazione {
    padding: 12px 20px !important;
    font-size: 9px !important;
  }
    /* Hero: altezza compatta in tutte le pagine */
  .sppb-section:has(.hero-titolo) {
    min-height: 0 !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .sppb-section:has(.hero-titolo) .sppb-row-container,
  .sppb-section:has(.hero-titolo) .sppb-column {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero-content > *:last-child {
    margin-bottom: 0 !important;
  }

  .logo-hero i     { font-size: 42px; }
  .logo-hero .plus { font-size: 27px; }
  .logo-hero .uno  { font-size: 37px; }

  /* Titoli e testi */
  .titolo {
    font-size: 24px !important;
  }
  .logo-titolo i     { font-size: 36px; }
  .logo-titolo .plus { font-size: 26px; }
  .logo-titolo .uno  { font-size: 31px; }
  .att-titolo {
    font-size: 24px !important;
  }
  .home-testo {
    text-align: left;
    font-size: 14px !important;
  }
  .testo {
  font-size: 14px !important;
  }
    /* n+1 nei testi: dimensioni su mobile */
  .hero-testo .logo i,
  .home-testo .logo i,
  .sez-testo .logo i,
  .testo .logo i {
    font-size: 20px !important;
  }
  .hero-testo .logo .plus,
  .home-testo .logo .plus,
  .sez-testo .logo .plus,
  .testo .logo .plus {
    font-size: 13px !important;
  }
  .hero-testo .logo .uno,
  .home-testo .logo .uno,
  .sez-testo .logo .uno,
  .testo .logo .uno {
    font-size: 17px !important;
  }
  .hero-testo .logo,
  .home-testo .logo,
  .sez-testo .logo,
  .testo .logo {
    line-height: 1 !important;
  }

    /* Appuntamenti (home): prossimo in evidenza, passati compatti */
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card,
  .app-card:first-child,
  .app-card:last-child {
    padding: 14px 0;
    border-right: none;
    border-bottom: 1px solid #e0ddd6;
  }
  
  .app-card:first-child {
    padding: 0 0 24px 0;
  }
  .app-card:first-child .app-giorno {
    font-size: 2.3rem !important;
  }
  .app-card:last-child {
    border-bottom: none;
  }
  .app-card:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .app-card:not(:first-child) .app-titolo,
  .app-card:not(:first-child) .app-label-temi,
  .app-card:not(:first-child) .app-temi {
    display: none;
  }
  .app-card:not(:first-child) .app-data-row {
    margin-bottom: 0;
  }
  .app-card:not(:first-child) .app-giorno {
    font-size: 1.4rem;
  }
  .app-card:not(:first-child) .app-mese br {
    display: none;
  }


    /* Network (home): due link affiancati, senza immagini */
  .net-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .net-item {
    padding: 0 !important;
  }
  .net-item::before {
    width: 30% !important;
    margin: 10px 0 12px 0 !important;
  }
   .net-desc {
    display: none !important;
  }
  .net-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    margin: 0 0 10px 0 !important;
  }
  .net-nome {
    font-size: 15px !important;
    padding: 0 0 5px !important;
  }
  .net-link {
    font-size: 10px !important;
  }

    /* CTA Sostieni (home): simbolo, titoletto e link affiancati */
  .cta-sostieni {
    padding: 28px 16px;
  }
  .cta-sostieni-titolo {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 22px;
  }
  .cta-col:first-child {
    padding: 0 12px 0 0;
  }
  .cta-col:last-child {
    padding: 0 0 0 12px;
  }
  .cta-icona {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  .cta-col:first-child .cta-icona span {
    font-size: 0.5rem !important;
  }
  .cta-col:last-child .cta-icona span {
    font-size: 1.1rem !important;
  }
  .cta-col-titolo {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .cta-col-testo {
    display: none;
  }
  .cta-btn,
  .cta-btn:hover,
  .cta-btn:focus {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #8B1A1A !important;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
      /* Galleria archivio (home): striscia scorrevole */
  .arch-gallery-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 30px !important;
  }
  .arch-img {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 150px !important;
    scroll-snap-align: start;
  }
  .arch-img img {
    height: 100% !important;
    width: auto !important;
  }

  /* Sostienici: codice fiscale */
  .cf-num {
    font-size: 34px !important;
    letter-spacing: 1px !important;
  }

    /* Footer: compatto */
  #sp-bottom {
    padding: 20px 0 0 !important;
  }
  #sp-bottom .container-inner {
    padding: 10px 0 !important;
  }
  .f-logo-wrap img {
    height: 38px !important;
    margin: 0 auto 16px !important;
  }
  .f-info {
    font-size: 12px !important;
    line-height: 1.8 !important;
    text-align: center !important;
  }
  .f-divider {
    margin: 14px auto !important;
  }

  /* Secondo blocco: solo i link privacy */
  .f-blocco2 {
    display: block !important;
    margin-top: 18px;
    text-align: center !important;
  }
  .f-blocco2 .f-col:first-child,
  .f-blocco2 .f-col:last-child > *:not(:last-child) {
    display: none !important;
  }
  .f-blocco2 .f-col:last-child > .f-links:last-child {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 0 !important;
  }
  .f-blocco2 .f-links a {
    font-size: 12px !important;
  }

    /* La Fondazione: disegno della sede a tutta larghezza */
  .wrap:has(.img-sede) {
    display: flex;
    flex-direction: column;
  }
  .img-sede {
    order: 1;
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 24px 0;
  }
  .wrap:has(.img-sede) .testo {
    order: 2;
  }
/* Archivio */
  /* Immagine biblioteca */
      .img-biblioteca .sppb-addon-single-image-container {
    display: block !important;
    width: 100% !important;
  }
  .img-biblioteca img {
    display: block !important;
    width: 85% !important;
    height: auto !important;
    margin: 0 auto 20px !important;
  }
/* Immagini collezione Ratti */
    .ratti-galleria {
    gap: 20px;
    padding-top: 24px;
  }
/* ATTIVITA */
     .att-titolo {
       font-size: 21px !important;
       margin-bottom: 12px !important;
     }
  .img-att .sppb-addon-single-image-container {
    display: block !important;
    width: 100% !important;
  }
    .img-att img.sppb-img-responsive {
    display: block !important;
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    margin: 0 0 18px !important;
  }
    .web-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .web-card {
    padding: 10px;
    margin: 0;
  }
  .web-card img {
    height: 80px;
    object-fit: cover;
    object-position: top;
  }
  .web-card p {
    margin-top: 10px;
  }
  .web-card .btn-link {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }
  /* RIVISTA */

  /* Rivista: copertine su tre colonne */
  .cover-grid-2col {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 300px !important;
    padding: 24px 0 0 !important;
    margin: 0 auto !important;
  }

    /* Sostienici: riquadri più compatti */
  .don-box {
    padding: 20px !important;
    margin: 24px 0 !important;
  }
  .don-titolo {
    font-size: 19px !important;
    margin-bottom: 14px !important;
  }
  .steps {
    gap: 12px !important;
  }
  .step {
    padding: 20px !important;
  }
  .step-num {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }
    /* Footer: riga di copyright su mobile */
  #sp-footer .sp-copyright {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.8 !important;
  }
  .copy-np1 i {
    font-size: 16px !important;
    letter-spacing: 1px !important;
  }
  .copy-np1 .plus {
    font-size: 13px !important;
  }
  .copy-np1 .uno {
    font-size: 16px !important;
  }
  .solo-mobile {
    display: inline !important;
  }
  .footer-sep {
    display: none !important;
  }
}