/* ========================================
   FONDAZIONE ARMANDO - MAIN STYLES
   ======================================== */

/* CSS Variables */
:root {
  /* Colors - Palette dal Logo */
  --primary-blue: #0078E8; /* Blu marino profondo (parte inferiore logo) */
  --primary-green: #26BF94; /* Verde acqua/ciano (parte centrale logo) */
  --logo-green-bright: #00FF88; /* Verde brillante/lime (parte superiore logo) */
  --primary-white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --accent-celeste: #26BF94; /* Allineato al verde acqua del logo */
  --accent-verde: #00FF88; /* Allineato al verde brillante del logo */
  --background-light: #f8f9fa;
  --border-light: #e9ecef;
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3.1rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip; /* ← cintura di sicurezza: taglia lo scroll laterale senza creare
                       scroll container, quindi non rompe gli sticky (a differenza di hidden) */
}

body {
  margin: 0;
  padding: 0;
  padding-top: 60px;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  /* overflow-x rimosso: era la causa dello sticky rotto su Safari iPad */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--spacing-md) 0;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  margin: 0 0 var(--spacing-md) 0;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

main {
  flex: 1;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.site-header {
  background: var(--primary-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.site-description {
  margin: 0 0 0 var(--spacing-sm);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-md);
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background-color: var(--primary-green);
  color: var(--primary-white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -6px;
}

.hamburger-icon::after {
  bottom: -6px;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100svh; /* ← era 100vh: evita sforamento barra indirizzi iOS */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-align: center;
  overflow: hidden;
}

.hero-section.has-video-bg {
  background: #1a1a1a; /* Dark background to prevent green flash before video loads */
}

.hero-section.has-image-bg {
  background-color: #1a1a1a; /* Dark fallback to prevent green flash */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-section.has-gradient-bg {
  background: linear-gradient(to right, #26BF94, #0078e8);
  background-color: #0078e8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* Escludi l'overlay generico dalla pagina contatti quando non c'è un'immagine */
.contact-hero:not(.has-bg-image) .hero-overlay {
  background: transparent;
}

.hero-section.has-gradient-bg .hero-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: var(--spacing-xl);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 767px) {
  .hero-section.has-image-bg {
    background-attachment: scroll;
  }
}

.hero-section .hero-title {
  /* Font size controlled by Customizer in front-page.php */
  font-weight: 800; /* Aumentato da 700 a 800 per font più bold come stillirise.org */
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: var(--hero-title-color, #ffffff) !important;
  /* Nessun text-transform: l'utente decide come scrivere il testo */
  letter-spacing: 0.05em; /* Letter-spacing più ampio per maggiore leggibilità */
  line-height: 1.1; /* Line-height più stretto per impatto maggiore */
}

.hero-section .hero-subtitle {
  /* Font size controlled by Customizer in front-page.php */
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  color: var(--hero-subtitle-color, #ffffff) !important;
  /* Nessun text-transform: l'utente decide come scrivere il testo */
}

/* Responsive scaling for hero section */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    max-height: 70vh;
  }
  
  .hero-section.has-image-bg {
    background-size: cover;
    background-position: center center;
  }
  
  .hero-section .hero-title {
    font-size: clamp(32px, calc(var(--hero-title-font-size, 72px) * 0.5), calc(var(--hero-title-font-size, 72px) * 0.6)) !important;
    font-weight: 800 !important; /* Font molto bold come il sito di esempio */
    letter-spacing: 0.05em !important;
    line-height: 1.1 !important;
  }
  
  .hero-section .hero-subtitle {
    font-size: clamp(18px, calc(var(--hero-subtitle-font-size, 20px) * 0.65), calc(var(--hero-subtitle-font-size, 20px) * 0.75)) !important;
  }
  
  .hero-content {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 60vh;
    max-height: 60vh;
  }
  
  .hero-section .hero-title {
    font-size: clamp(28px, calc(var(--hero-title-font-size, 72px) * 0.42), calc(var(--hero-title-font-size, 72px) * 0.5)) !important;
    font-weight: 800 !important; /* Font molto bold come il sito di esempio */
    letter-spacing: 0.05em !important;
    line-height: 1.1 !important;
  }
  
  .hero-section .hero-subtitle {
    font-size: clamp(16px, calc(var(--hero-subtitle-font-size, 20px) * 0.55), calc(var(--hero-subtitle-font-size, 20px) * 0.65)) !important;
  }
  
  .hero-content {
    padding: var(--spacing-sm);
  }
}

.custom-logo {
  transition: width 0.3s ease, height 0.3s ease;
}

.animated-line {
  width: 100px;
  height: 3px;
  background: var(--primary-white);
  margin: var(--spacing-lg) auto 0;
  opacity: 0.8;
}

@media (min-width: 768px) {

    .hero-section .hero-title {
      /* font-size viene gestito dallo stile inline (Customizer) */
      font-weight: 800 !important; /* Font molto bold */
      letter-spacing: 0.05em !important; /* Letter-spacing più ampio */
      line-height: 1.1 !important; /* Line-height più stretto */
    }
    
    .hero-section .hero-subtitle {
      font-size: 1.4rem;
    }
    
    .hero-section {
      min-height: 80vh;
    }

}

/* ========================================
   VIDEO BACKGROUND STYLES
   ======================================== */

.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.7;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100svh; /* ← era 100vh: evita sforamento barra indirizzi iOS */
  object-fit: cover;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background-container .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-section.has-video-bg {
  position: relative;
  overflow: hidden;
  min-height: 100svh; /* ← era 100vh: evita sforamento barra indirizzi iOS */
  background: #1a1a1a; /* Dark background to prevent green flash before video loads */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section.has-video-bg .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.video-background-container.video-loaded .video-overlay {
  opacity: 0.3;
}

.video-background-container.video-error {
  background: #f0f0f0;
}

.video-background-container.video-error::after {
  content: "Video non disponibile";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 14px;
  z-index: 5;
}

@media (max-width: 768px) {
  .hero-section.has-video-bg {
    min-height: 70vh;
    max-height: 70vh;
  }
  
  .video-bg-mobile-disabled .video-background-container {
    display: none;
  }
  
  .video-bg-mobile-disabled .hero-section.has-video-bg {
    background: linear-gradient(to right, #26BF94, #0078e8);
  }
}

@media (max-width: 480px) {
  .hero-section.has-video-bg {
    min-height: 60vh;
    max-height: 60vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-background-container {
    display: none;
  }
  
  .hero-section.has-video-bg {
    background: linear-gradient(to right, #26BF94, #0078e8);
  }

  /* ← feature poster: se la var e' settata, sovrascrive il gradient con l'immagine poster */
  .hero-section.has-video-bg {
    background-image: var(--hero-video-poster, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--text-dark);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: var(--primary-white);
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--text-dark);
  color: var(--primary-white);
  text-decoration: none;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}

*:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
  background: var(--primary-blue);
  color: var(--primary-white);
  padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
  margin-top: auto;
}

/* Layout per pagine interne senza sidebar */
.page-main {
  min-height: calc(100vh - 200px);
  flex: 1;
  padding: var(--spacing-xl) 0;
}

.page-content {
  max-width: 100%;
  margin: 0 auto;
}

.page-content .entry-header {
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.page-content .entry-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.page-content .entry-content {
  line-height: 1.6;
  font-size: 1.1rem;
}

.page-thumbnail {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.page-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Layout flex per footer sticky */


.main-content {
  flex: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  justify-content: space-between;
  align-items: start;
  width: 100%;
}

.footer-column {
  min-width: 0;
}

/* Logo Column */
.footer-logo {
  margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
  max-height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-white);
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Column Headings */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-white);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Column */
.footer-contact p {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--primary-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-contact a:hover {
  color: var(--primary-white);
}

.footer-contact a i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Navigation Menus */
.footer-menu,
.footer-social-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-menu {
  display: flex;
  gap: var(--spacing-md);
}

.footer-menu li {
  margin-bottom: var(--spacing-sm);
}

.footer-social-menu li {
  margin-bottom: 0;
}

.footer-menu a,
.footer-social-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-social-menu a:hover {
  color: var(--primary-green);
}

/* Social icons styling */
.footer-social-menu i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.footer-social-menu a:hover i {
  transform: scale(1.1);
}

/* Hide empty social column */
.footer-social-col:empty {
  display: none;
}

/* Adjust grid when social column is hidden */
.footer-content:has(.footer-social-col:empty) {
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  flex: 1;
}

.copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
  flex-shrink: 0;
}

.footer-legal-nav ul,
.footer-legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-lg);
}

.footer-legal-nav a,
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-legal-nav a:hover,
.footer-legal-links a:hover {
  color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
    justify-content: center;
  }
  
  .footer-logo-img {
    max-height: 50px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .copyright {
    flex: none;
  }
  
  .footer-legal-nav ul,
  .footer-legal-links {
    justify-content: center;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .footer-legal-nav ul,
  .footer-legal-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* === BARRA DONAZIONI === */
.barra-donazioni {
  position: relative;
  background: #ffffff;
}

.barra-donazioni-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 531px;
}

.barra-donazioni-image {
  flex: 0 0 66.666%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}

.barra-donazioni-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.barra-donazioni-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  border-radius: 12px;
}

.barra-donazioni-content {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-lg);
  text-align: left;
}

.barra-donazioni-actions {
  margin-top: var(--spacing-lg);
}

.barra-donazioni .btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--barra-donazioni-btn-font-size, 16px) !important;
  font-weight: 600;
  border-radius: 8px;
  border: none !important;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.barra-donazioni .btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* === BARRA NEWSLETTER FOOTER === */
.barra-newsletter {
  position: relative;
  background: #f8f9fa;
  padding: 20px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.barra-newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.barra-newsletter-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.barra-newsletter-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.barra-newsletter-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.barra-newsletter-actions {
  flex-shrink: 0;
}

.barra-newsletter-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: var(--barra-newsletter-btn-font-size, 16px) !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  background-color: var(--primary-blue); /* Usa il blu marino del logo */
  color: white;
  border: none;
}

.barra-newsletter-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 72, 115, 0.3); /* Sombra con colore del logo */
}

/* Responsive Design */
@media (max-width: 768px) {
  .barra-donazioni {
    margin-bottom: var(--spacing-lg);
  }
  
  .barra-donazioni-wrapper {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  
  .barra-donazioni-image {
    flex: 0 0 auto;
    height: auto;
    min-height: 250px;
  }
  
  .barra-donazioni-img {
    height: auto;
    min-height: 250px;
    object-fit: cover;
  }
  
  .barra-donazioni-content {
    flex: 0 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
  }

  .barra-newsletter {
    padding: 15px 0;
  }
  
  .barra-newsletter-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .barra-newsletter-text {
    flex-direction: column;
    gap: 5px;
  }
  
  .barra-newsletter-title {
    font-size: 1.1rem;
  }
  
  .barra-newsletter-subtitle {
    font-size: 0.9rem;
  }
  
  .barra-newsletter-btn {
    padding: 10px 20px;
    font-size: calc(var(--barra-newsletter-btn-font-size, 16px) * 0.9) !important;
  }
}

@media (max-width: 480px) {
  .barra-donazioni {
    margin-bottom: var(--spacing-md);
  }
  
  .barra-donazioni-image {
    min-height: 200px;
  }
  
  .barra-donazioni-img {
    min-height: 200px;
  }
  
  .barra-donazioni-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .barra-donazioni .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: calc(var(--barra-donazioni-btn-font-size, 16px) * 0.9) !important;
  }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero Section */
.contact-hero {
  position: relative;
  height: 350px;
  /* Background viene gestito dinamicamente via inline style o immagine */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-align: center;
}

/* About Page Styles */
.about-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    text-align: center;
    overflow: hidden;
}

/* Overlay scuro per la hero - opacità ridotta per la pagina Fondazione */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Opacità ancora più ridotta per la pagina Fondazione */
.page-slug-fondazione .about-hero::before {
    background: rgba(0, 0, 0, 0.15);
}

/* Zoom Effect for Hero Sections */
/* RESET - Disabilita l'animazione esistente */
.zoom-hero::before,
.zoom-hero .hero-bg-image,
.hero-slideshow .hero-bg-image {
    animation: none !important;
}

/* Classe principale per attivare l'effetto */
.zoom-hero {
    position: relative !important;
    overflow: hidden !important;
    height: 400px !important; /* Altezza fissa 400px */
    min-height: 400px !important;
    max-height: 400px !important;
}

/* Effetto per immagine singola */
.zoom-hero::before {
    content: '' !important;
    position: absolute !important;
    top: -10% !important;
    left: -10% !important;
    width: 120% !important;
    height: 120% !important;
    background-image: inherit !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transform: scale(1) !important;
    transform-origin: center center !important;
    z-index: 1 !important;
    animation: heroZoomVisible 8s ease-in-out infinite !important;
}

/* Effetto per slideshow di immagini */
.hero-slideshow .hero-bg-image {
    position: absolute !important;
    top: -10% !important; /* Più spazio per lo zoom */
    left: -10% !important;
    width: 120% !important; /* Più grande per zoom più visibile */
    height: 120% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transform: scale(1) !important;
    transform-origin: center center !important;
    transition: opacity 2s ease-in-out !important;
    z-index: 1 !important;
    animation: heroZoomVisible 8s ease-in-out infinite !important;
}

.hero-slideshow .hero-bg-image.active {
    opacity: 1 !important;
}

.hero-slideshow::before {
    display: none !important;
}

/* Overlay per contenuto sopra l'immagine */
.zoom-hero .hero-overlay {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Animazione keyframe PIÙ VISIBILE */
@keyframes heroZoomVisible {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15); /* Zoom molto più evidente */
    }
    100% {
        transform: scale(1);
    }
}

/* Versione alternativa ancora più sottile */
@keyframes heroZoomSubtle {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.04);
    }
}

/* Per un effetto ancora più lento e sottile, usa questa classe */
.zoom-hero-subtle::before,
.zoom-hero-subtle .hero-bg-image {
    animation: heroZoomSubtle 25s ease-in-out infinite alternate !important;
}

/* Effetto hover per fermare l'animazione (opzionale) */
.zoom-hero:hover::before,
.zoom-hero:hover .hero-bg-image {
    animation-play-state: paused !important;
}

.about-hero .hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-hero .hero-overlay .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 70px;
}

.about-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
    text-transform: lowercase;
}
.about-hero .hero-title::first-letter {
    text-transform: uppercase;
}

.about-hero .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
    text-align: center;
    text-transform: lowercase;
}
.about-hero .hero-subtitle::first-letter {
    text-transform: uppercase;
}

/* Media queries per dispositivi mobili */
@media (max-width: 768px) {
    .about-hero,
    .zoom-hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
    
    .zoom-hero::before,
    .hero-slideshow .hero-bg-image {
        animation: heroZoomVisible 6s ease-in-out infinite !important;
        width: 112% !important;
        height: 112% !important;
        top: -6% !important;
        left: -6% !important;
    }
    
    @keyframes heroZoomVisible {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.12); /* Zoom più visibile su mobile */
        }
        100% {
            transform: scale(1);
        }
    }
    
    .about-hero .hero-content {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 80px;
    }
    
    .about-hero .hero-title {
        font-size: 2rem;
    }
    
    .about-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}
/* About Content Styles */
.about-content {
  padding: 40px 0;
  background: #f8f9fa;
}

.about-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-main-content {
  background: #ffffff;
  /* padding: 40px; */
  margin-bottom: 40px;
  border-radius: 12px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.about-main-content h2 {
  color: var(--primary-blue); /* Usa il blu marino del logo */
  font-size: 2.0rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* About Page Layout - Two Columns */
.about-page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px !important;
}

.about-main-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.about-sidebar {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  min-width: 300px;
}

@media (max-width: 991.98px) {
  .about-page-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-sidebar {
    flex: 1;
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-mission,
.about-values {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-blue); /* Usa il blu marino del logo */
}

.about-mission h3,
.about-values h3 {
  color: var(--primary-blue); /* Usa il blu marino del logo */
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.about-mission p,
.about-values p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* About page intro section */
.about-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
}

.about-intro .section-title {
    color: var(--primary-blue); /* Usa il blu marino del logo */
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-intro .section-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* About sections container */
.about-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.about-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-section h3 {
    color: var(--primary-blue); /* Usa il blu marino del logo */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-section .section-text {
    line-height: 1.6;
    color: #555;
}

.about-section .section-text p {
    margin-bottom: 15px;
}

/* Simple About Layout */
.about-simple-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.about-simple-content h2 {
  color: var(--primary-blue);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
  font-weight: 600;
}

.about-simple-content h2:first-child {
  margin-top: 0;
}

.about-simple-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.about-simple-content ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.about-simple-content li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

/* Responsive adjustments for simple about */
@media (max-width: 768px) {
    .about-intro {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .about-intro .section-title {
        font-size: 2rem;
    }
    
    .about-sections {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-section h3 {
        font-size: 1.5rem;
    }
    
    .about-simple-content {
        padding: var(--spacing-md);
    }
    
    .about-simple-content h2 {
        font-size: 1.5rem;
    }
    
    .about-simple-content p,
    .about-simple-content li {
        font-size: 1rem;
    }
}

.transparency-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Overlay solo quando c'è un'immagine di sfondo */
.contact-hero.has-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.contact-hero .hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.contact-hero .hero-overlay .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.contact-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-transform: lowercase;
}
.contact-hero .hero-title::first-letter {
  text-transform: uppercase;
}

.contact-hero .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  margin: 0;
  text-transform: lowercase;
}
.contact-hero .hero-subtitle::first-letter {
  text-transform: uppercase;
}

/* Breadcrumb Section - Stile pulito come template Armando */
.page-template-page-about .breadcrumb-section,
.post-type-archive-progetti .breadcrumb-section,
.page-template-page-armando .breadcrumb-section,
.page-template-page-armando-bis .breadcrumb-section,
.post-type-archive-news .breadcrumb-section,
.page-template-page-contatti .breadcrumb-section,
.page-template-default .breadcrumb-section{  
  padding: 15px 0 20px 0;
}



.breadcrumb-section {
  background: transparent;
  padding: 0;
  margin: 0;
  border-bottom: none;
}

/* Nasconde elementi vuoti nelle breadcrumb */
.breadcrumb-section:empty,
.breadcrumb-section span:empty {
  display: none;
}

.breadcrumb {
  margin: 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumb-link i {
  font-size: 0.85rem;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #6c757d;
  font-weight: 300;
}

.breadcrumb-current {
  color: #6c757d;
  font-weight: 500;
}

/* Contact Content */
.contact-content {
  padding: var(--spacing-xxl) 0;
  background: var(--primary-white);
}

/* Contatti: meno spazio tra breadcrumb e contenuto */
.page-template-page-contatti .breadcrumb-section {
  margin-bottom: 0.5rem;
}
.page-template-page-contatti .contact-content {
  padding-top: 1.25rem;
}

/* Contact Columns Layout */
.contact-columns {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: flex-start;
}

.contact-info-column {
  flex: 1;
  min-width: 0;
}

.contact-form-column {
  flex: 1;
  min-width: 0;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #024873;
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.contact-info p {
  font-size: 1.1rem;
  color: #024873;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

/* Contact Details */
.contact-details {
  margin-top: var(--spacing-xl);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.contact-item:hover .contact-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(2, 72, 115, 0.4); /* Sombra con colore del logo */
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, #26BF94, #0078e8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(2, 72, 115, 0.3); /* Sombra con colore del logo */
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-icon i {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.95rem;
  color: #024873;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.2;
}

.contact-value {
  font-size: 1.15rem;
  color: #024873;
  font-weight: 600;
  line-height: 1.3;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--background-light);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: fit-content;
  position: sticky;
  top: var(--spacing-xl);
}

/* Contact Form 7 Styles */
.contact-form-wrapper .wpcf7-form {
  margin: 0;
}

/* ← rimosso duplicato .contact-form-wrapper .wpcf7-form p: vinceva comunque
   la regola più sotto (margin-bottom: 24px, stesso valore di --spacing-lg) */

.contact-form-wrapper .wpcf7-form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--primary-white);
  box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(38, 191, 148, 0.1);
}

.contact-form-wrapper .wpcf7-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-wrapper .wpcf7-submit {
  background: var(--primary-green);
  color: var(--primary-white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form-wrapper .wpcf7-submit:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(38, 191, 148, 0.3);
}

/* Contact Form 7 Response Messages */
.contact-form-wrapper .wpcf7-response-output {
  margin: var(--spacing-lg) 0 0 0;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-mail-sent-ng {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-form-wrapper .wpcf7-spam-blocked {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Contact Form 7 Validation */
.contact-form-wrapper .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: block;
}

/* Nascondi <br> extra generati da Contact Form 7 */
.contact-form-wrapper .wpcf7-form br,
.contact-form-wrapper .wpcf7-form p br,
.contact-form-wrapper .wpcf7-form label br,
.contact-form-wrapper .wpcf7-form div br,
.contact-form-wrapper .wpcf7-form h3 br,
.contact-form-wrapper .wpcf7-form .form-row-2col br {
    display: none !important;
}

/* Nascondi paragrafi vuoti */
.contact-form-wrapper .wpcf7-form p:empty,
.contact-form-wrapper .wpcf7-form p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    line-height: 0;
}

/* Spacing tra i campi del form contatti */
.contact-form-wrapper .wpcf7-form p {
    margin-top: 0;
    margin-bottom: 24px;
}

.contact-form-wrapper .wpcf7-form p:last-child {
    margin-bottom: 0;
}

/* Spacing per i campi nelle colonne */
.contact-form-wrapper .wpcf7-form .form-row-2col > p {
    margin-bottom: 24px;
}

.contact-form-wrapper .wpcf7-form .form-row-2col {
    margin-bottom: 0;
}

/* Spacing per gli h3 */
.contact-form-wrapper .wpcf7-form h3 {
    margin-bottom: 24px;
    margin-top: 40px;
}

.contact-form-wrapper .wpcf7-form h3:first-of-type {
    margin-top: 0;
}

/* Spacing e colore label (blu #024873) */
.contact-form-wrapper .wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #024873;
}

/* Spacing per il bottone submit */
.contact-form-wrapper .wpcf7-form .form-buttons {
    margin-top: 32px;
    margin-bottom: 0;
}

/* Privacy/Acceptance checkbox - Form Contatti */
.contact-form-wrapper .wpcf7-form .wpcf7-acceptance {
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance a {
    color: var(--primary-green, #26BF94);
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance a:hover {
    color: var(--primary-blue, #0078E8);
}

/* Legacy form styles for fallback */
.contact-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.wpcf7-list-item {
  display: inline-block;
  margin: 0 0 0 0em;
}




.contact-form .form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--primary-white);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(38, 191, 148, 0.1);
}

.contact-form .form-control::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-contact {
  background: var(--primary-green);
  color: var(--primary-white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-contact:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(38, 191, 148, 0.3);
}

/* Contact Map */
.contact-map {
  height: 400px;
  overflow: hidden;
}

.contact-map .map-container {
  width: 100%;
  height: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.contact-map:hover iframe {
  filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .breadcrumb-section {
    padding: 0;
    margin: 0;
  }
  
  .progetti-simple-header .breadcrumb-section {
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
  }
  
  .breadcrumb-separator {
    margin: 0 6px;
  }
  
  .contact-hero {
    height: 300px;
  }
  
  .contact-hero .hero-title {
    font-size: 2rem;
  }
  
  .contact-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-content {
    padding: var(--spacing-xl) 0;
  }
  
  .contact-info h2 {
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    position: static;
  }
  
  .contact-columns {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .contact-info-column,
  .contact-form-column {
    width: 100%;
  }
  
  .contact-form-column {
    order: -1;
  }
  
  .contact-item {
    padding: var(--spacing-md);
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-md);
  }
  
  .contact-icon i {
    font-size: 1rem;
  }
  
  /* About Page Mobile Styles */
  .about-hero {
    height: 300px;
  }
  
  .about-hero .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .about-hero .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .about-content {
    padding: var(--spacing-xl) 0;
  }
  
  .about-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .about-main-content {
    padding: var(--spacing-lg);
  }
  
  .about-main-content h2 {
    font-size: 1.8rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .about-mission,
  .about-values {
    padding: var(--spacing-lg);
  }
  
  .about-mission h3,
  .about-values h3 {
    font-size: 1.3rem;
  }
}

/* ===== PROGETTI GRID STYLES ===== */

/* Progetti Section */
.progetti-section {
  background: var(--progetti-bg-color, rgba(0, 255, 136, 0.03)); /* Fallback: sfondo leggerissimo con verde brillante del logo */
}

/* Tipografia header progetti: home-sections.css + custom properties inline sul <section> */

/* Progetti Grid */
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

/* Progetto Card Simple */
.progetto-card-simple {
  background: var(--progetti-card-bg-color, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.progetto-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Project Image */
.progetto-image {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #e5e5e5;
}

.progetto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.progetto-card-simple:hover .progetto-image img {
  transform: scale(1.05);
}

.progetto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5;
}

.progetto-placeholder svg {
  opacity: 0.6;
}

/* Project Status Badge */
.progetto-status {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

/* Badge novità / aggiornamenti (basso sinistra; card + immagine singolo progetto) */
.progetto-image .progetto-novita-badge,
.progetto-image a.progetto-novita-badge--link,
.progetti-featured-image .featured-image-wrapper .progetto-novita-badge,
.progetti-featured-image .featured-image-wrapper a.progetto-novita-badge--link {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: auto;
  top: auto;
  z-index: 2;
  max-width: min(100% - 2rem, 19rem);
  text-decoration: none;
  color: inherit;
}

.progetto-novita-badge__inner {
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: var(--border-radius, 8px);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #024873;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 72, 115, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

a.progetto-novita-badge--link:hover .progetto-novita-badge__inner,
a.progetto-novita-badge--link:focus-visible .progetto-novita-badge__inner {
  border-color: #024873;
  box-shadow: 0 6px 18px rgba(2, 72, 115, 0.18);
}

a.progetto-novita-badge--link:focus-visible {
  outline: 2px solid #26bf94;
  outline-offset: 2px;
}

/* Sezione novità singolo progetto */
.progetto-novita-section {
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #024873;
  scroll-margin-top: 5.5rem;
}

.progetto-novita-section__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #024873;
}

.progetto-novita-section__body {
  color: #333;
  line-height: 1.75;
}

.progetto-novita-section__body > *:first-child {
  margin-top: 0;
}

.progetto-novita-section__body > *:last-child {
  margin-bottom: 0;
}

.status-badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-in_corso {
  background: rgba(255, 193, 7, 0.9);
  color: #856404;
}

.status-badge.status-completato {
  background: rgba(40, 167, 69, 0.9);
  color: var(--primary-white);
}

.status-badge.status-sospeso {
  background: rgba(220, 53, 69, 0.9);
  color: var(--primary-white);
}

/* Project Content */
.progetto-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.progetto-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.progetto-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.progetto-title a:hover {
  color: var(--primary-green);
}

/* Tipo progetto (come categorie news) */
.progetto-card-simple .fondazione-card-categories,
.progetti-simple-header .fondazione-card-categories {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0.22rem;
    flex-wrap: wrap;
}

.progetto-card-simple .fondazione-card-categories i,
.progetti-simple-header .fondazione-card-categories i {
    font-size: 0.9rem;
    color: #6c757d;
}

.progetto-card-simple .fondazione-card-categories span,
.progetti-simple-header .fondazione-card-categories span {
    color: #6c757d;
}

/* Fondazione Card Content - Allineamento bottoni */
.fondazione-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.fondazione-card-description {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
}

.mission-card-cta {
    margin-top: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 10px;
}

/* Project Meta */
.progetto-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-gray);
}

.progetto-tipo,
.progetto-data {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(38, 191, 148, 0.1);
  border-radius: var(--border-radius);
  font-weight: 500;
}

/* Project Description */
.progetto-description {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  flex: 1;
  font-size: 1rem;
}

/* Read More Link */
.progetto-link {
  margin-top: auto;
}

.read-more {
  background: var(--progetti-btn-bg-color, var(--primary-blue)); /* Fallback: blu marino del logo */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  border: none;
  cursor: pointer;
}

.read-more:hover {
  background: var(--progetti-btn-bg-color, var(--primary-blue));
  opacity: 0.85;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Override per il link Contribuisci - deve avere testo bianco su sfondo giallo */
.progetto-card-simple .read-more-contribuisci,
.progetto-card-simple .progetto-link .read-more-contribuisci,
.progetto-card-simple .progetto-btn-contribuisci,
.progetto-btn-contribuisci {
  background-color: #FFC107 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.progetto-card-simple .read-more-contribuisci:hover,
.progetto-card-simple .progetto-link .read-more-contribuisci:hover,
.progetto-card-simple .progetto-btn-contribuisci:hover,
.progetto-btn-contribuisci:hover {
  background-color: #ffb300 !important;
  color: #ffffff !important;
}

/* Progetti CTA */
.progetti-cta {
  text-align: center;
}

.progetti-cta .btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--progetti-btn-font-size, 14px) !important;
  font-weight: 600;
}

/* Archive Page Styles */
.page-header {
  background: var(--primary-green);
  color: var(--primary-white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.page-header .page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.page-header .page-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.progetti-archive-section {
  padding: var(--spacing-lg) 0;
}

.progetti-archive-section .progetti-grid {
  margin-bottom: var(--spacing-xxl);
}

/* No Projects State */
.no-projects,
.no-content {
  text-align: center;
  padding: var(--spacing-xxl);
}

.no-projects h2,
.no-content h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.no-projects p,
.no-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
}

/* Pagination – grafica unificata (archivio news e progetti): bottoni compatti, blu pieno */
.pagination-wrapper {
  margin-top: var(--spacing-xxl);
  margin-bottom: 60px;
  text-align: center;
}

.pagination-wrapper .navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-wrapper .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #024873;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pagination-wrapper .nav-links .page-numbers:hover {
  background: #0078e8;
  color: #fff;
  border-color: #0078e8;
}

.pagination-wrapper .nav-links .page-numbers.current {
  background: #0078e8;
  color: #fff;
  border-color: #0078e8;
  pointer-events: none;
}

.pagination-wrapper .nav-links .page-numbers.prev,
.pagination-wrapper .nav-links .page-numbers.next {
  padding: 8px 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progetti-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .page-header .page-title {
    font-size: 2.2rem;
  }
  
  .page-header .page-subtitle {
    font-size: 1.1rem;
  }
  
  .progetto-image {
    height: 180px;
  }
  
  .progetto-content {
    padding: var(--spacing-md);
  }
  
  .progetto-title {
    font-size: calc(var(--progetti-title-font-size, 32px) * 0.6) !important;
  }
  
  .progetto-description {
    font-size: calc(var(--progetti-description-font-size, 18px) * 0.8) !important;
  }
}

@media (max-width: 480px) {
  .progetti-archive-section {
    padding: var(--spacing-xl) 0;
  }
  
  .progetto-image {
    height: 160px;
  }
  
  .progetto-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* ========================================
   ABOUT PAGE CONTENT SECTIONS
   ======================================== */

/* About Content Section */
.about-content-section {
  padding: 0rem 0 1rem 0;
}

.about-content-section .section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
}

.about-content-section .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-content-section .content-item h4 {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-content-section .content-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* Memorial Section - Enhanced Emotional Design */



/* Gallery Modal */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: none;
    padding: 1rem 1rem 0;
}

.modal-body {
    padding: 1rem;
}

#modalImage {
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Keyframe Animations for Emotional Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ========================================
   SINGLE NEWS STYLES
   ======================================== */

/* News Simple Header */
.news-simple-header {
    padding: 2rem 0 1rem;
    margin-bottom: 2rem;
}

.news-simple-header .breadcrumb {
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.3rem 0 1.1rem;
    line-height: 1.2;
    color: #024873;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== PROGETTI SINGLE PAGE STYLES ===== */

/* Progetti Content Section (uguale a news-content-section) */
.progetti-content-section {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    background: #ffffff;
}

/* Progetti Container (uguale a news-container) */
.progetti-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Progetti Layout (uguale a news-layout) */
.progetti-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Progetti Main Content */
.progetti-main-content {
    flex: 2;
    min-width: 0;
}

/* Progetti Sidebar */
.progetti-sidebar {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    padding: 0 12px 12px 12px;
    /* Senza overflow-y la sidebar non crea un contesto di scroll: niente taglio orizzontale del testo */
}

/* Progetti Navigation */
.progetti-navigation {
    margin-bottom: 3rem;
}

/* Spacer per allineare la barra nav alla sola colonna contenuto (stessa larghezza di .progetti-sidebar) */
.progetti-navigation-spacer {
    flex: 1;
    min-width: 300px;
}

/* Progetti Featured Image */
.progetti-featured-image {
    margin-bottom: 2rem;
}

.progetti-featured-image .featured-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.progetti-featured-image .featured-image-wrapper .progetto-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.progetti-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Progetti Title */
.progetti-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #024873;
    /* Tronca il titolo se troppo lungo per evitare breadcrumb lunghissimo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Breadcrumb nella pagina progetti - senza margini e padding */
.progetti-simple-header .breadcrumb-section {
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.progetti-simple-header .breadcrumb-section .container {
    padding: 0;
    max-width: 100%;
}

.progetti-simple-header .breadcrumb {
    margin: 0;
    padding: 0;
}

.progetti-simple-header .breadcrumb-list {
    margin: 0;
    padding: 0;
}

/* Tronca il titolo lungo nella breadcrumb */
.progetti-simple-header .breadcrumb-section .breadcrumb-item.breadcrumb-current {
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    flex: none !important;
    align-items: flex-start !important;
}

.progetti-simple-header .breadcrumb-section .breadcrumb-item.breadcrumb-current .breadcrumb-title-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

/* Progetti Meta */
.progetti-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.progetti-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progetti-meta i {
    color: #88BF6F;
}

.progetti-meta a {
    color: #88BF6F;
    text-decoration: none;
    font-weight: 500;
}

.progetti-meta a:hover {
    color: #6fa855;
    text-decoration: underline;
}

/* Progetti Content */
.progetti-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
}

.progetti-content h1,
.progetti-content h2,
.progetti-content h3,
.progetti-content h4,
.progetti-content h5,
.progetti-content h6 {
    color: #024873;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.progetti-content p {
    margin-bottom: 1.5rem;
}

.progetti-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Escludi immagini della galleria dallo stile generale */
.progetti-content .armando-gallery-grid img,
.news-content .armando-gallery-grid img,
.armando-gallery-grid .gallery-thumb img {
    border-radius: 0;
    margin: 0;
}

/* Progetti Details */
.progetti-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.progetti-details h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.progetti-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.progetti-details-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progetti-details-list li:last-child {
    border-bottom: none;
}

/* Progetti Partner */
.progetti-partner {
    margin-bottom: 2rem;
}

.progetti-partner h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== PARTNER SECTION STYLES ===== */

/* Partner Section */
.partner-section {
    padding: var(--spacing-xxl) 0;
}

.partner-section .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.partner-section .section-supertitle {
    display: block;
    font-size: var(--partner-supertitle-font-size, 14px);
    font-weight: 600;
    /* Nessun text-transform: l'utente decide come scrivere il testo */
    letter-spacing: 0.5px;
    color: var(--partner-supertitle-color, #999999);
    margin-bottom: 12px;
    text-align: center;
}

.partner-section .section-title {
    font-size: var(--partner-title-font-size, 32px);
    font-weight: 700;
    color: var(--partner-title-color, #333333);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.2;
    text-transform: lowercase;
}
.partner-section .section-title::first-letter {
    text-transform: uppercase;
}

.partner-section .section-subtitle {
    font-size: var(--partner-subtitle-font-size, 16px);
    color: var(--partner-subtitle-color, #666666);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
    justify-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(38, 191, 148, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ← rimosso duplicato .partner-logo img (max-width: 100% perdeva contro 100px);
   object-fit: contain accorpato nel blocco superstite più sotto */

.partner-placeholder {
    text-align: center;
    padding: 1rem;
}

.partner-placeholder h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.partner-item {
    text-align: center;
    padding: 1rem;
    background: rgba(38, 191, 148, 0.05); /* Sfondo leggero con verde acqua del logo */
    border-radius: 8px;
}

.partner-logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain; /* ← accorpato dal duplicato rimosso */
    margin-bottom: 0.5rem;
}

/* Progetti Tags */
.progetti-tags {
    margin-bottom: 2rem;
}

.progetti-tags h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.progetti-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.progetti-tags .tag-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(38, 191, 148, 0.1); /* Sfondo leggero con verde acqua del logo */
    color: var(--primary-blue); /* Testo con blu marino del logo */
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.progetti-tags .tag-link:hover {
    background: var(--primary-blue); /* Usa il blu marino del logo */
    color: #ffffff;
    text-decoration: none;
}

/* Progetti Gallery */
.progetti-gallery {
    margin: 2rem 0;
}

.progetti-gallery h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Progetti Sidebar - widget-header e altri stili specifici (card unificata sotto NEWS SIDEBAR STYLES) */
.progetti-sidebar .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #26BF94;
}

.progetti-sidebar .widget h3,
.progetti-sidebar .widget-title,
.progetti-sidebar .widget-header h3,
.progetti-sidebar .widget-header .widget-title {
    color: #024873 !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #26BF94;
}

.progetti-sidebar .archive-btn,
.progetti-sidebar .widget-header .archive-btn,
.progetti-sidebar a.archive-btn,
.progetti-sidebar .widget .archive-btn {
    background: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-image: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-color: #0078e8 !important;
    color: #ffffff !important;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.6s linear, background-color 0.6s linear, transform 0.4s ease, box-shadow 0.4s ease;
    border: none !important;
    display: inline-block;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.progetti-sidebar .archive-btn:hover,
.progetti-sidebar .widget-header .archive-btn:hover,
.progetti-sidebar a.archive-btn:hover,
.progetti-sidebar .widget .archive-btn:hover {
    background: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-image: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-color: #0078e8 !important;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none !important;
}

/* Progetti List in Sidebar - stesse card con ombra della sidebar news */
.progetti-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progetti-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.news-sidebar .progetti-item,
.progetti-sidebar .progetti-item {
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    /* Ombra su tutti i lati (come sidebar-news-compact-item) */
    box-shadow: 0 2px 12px 2px rgba(0, 0, 0, 0.06);
    border: none;
    padding-bottom: 12px;
}

.progetti-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-sidebar .progetti-item:last-child,
.progetti-sidebar .progetti-item:last-child {
    padding-bottom: 12px;
}

.progetti-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.progetti-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.progetti-thumb:hover img {
    transform: scale(1.05);
}

.progetti-info {
    flex: 1;
    min-width: 0;
}

.progetti-item-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.progetti-item-title a {
    color: #024873;
    text-decoration: none;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.progetti-item-title a:hover {
    color: #26BF94;
    text-decoration: none;
}

.progetti-item-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* News Container */
.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* News Layout - Two Columns */
.news-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-main-content {
    flex: 2;
    min-width: 0;
    margin-bottom: 20px;
}

.news-sidebar {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    padding: 0 12px 12px 12px;
    /* Stesso comportamento di .progetti-sidebar: niente overflow, rotella scrolla la pagina */
}

/* Widget Header e Archive Button nella sidebar news (come progetti-sidebar) */
.news-sidebar .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #26BF94;
}

.news-sidebar .widget-header h3,
.news-sidebar .widget-header .widget-title,
.news-sidebar .widget-title,
.news-sidebar .sidebar-widget .widget-title {
    color: #024873 !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
}

.news-sidebar .sidebar-widget .widget-title {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #26BF94;
}

.news-sidebar .archive-btn,
.news-sidebar .widget-header .archive-btn,
.news-sidebar a.archive-btn,
.news-sidebar .sidebar-widget .archive-btn {
    background: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-image: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-color: #0078e8 !important;
    color: #ffffff !important;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: none !important;
    transition: background 0.6s linear, background-color 0.6s linear, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.news-sidebar .archive-btn:hover,
.news-sidebar .widget-header .archive-btn:hover,
.news-sidebar a.archive-btn:hover,
.news-sidebar .sidebar-widget .archive-btn:hover {
    background: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-image: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-color: #0078e8 !important;
    color: #ffffff !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Featured Image */
.news-featured-image {
    margin-bottom: 3rem;
}

.featured-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Content Section */
.news-content-section {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    background: #ffffff;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light, #666666);
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4 {
    color: #024873;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-content p,
.news-content li,
.news-content span:not(.news-meta span):not(.news-category):not(.news-date) {
    color: var(--text-light, #666666);
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content img:not(.armando-gallery-grid img):not(.gallery-thumb img) {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

/* Tags */
.news-tags {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
}

.news-tags h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-green);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Social Share */
.news-share {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

/* Condividi articolo: niente sfondo, niente padding, icone e pulsanti più piccoli */
.article-share.news-share {
    padding: 0;
    background: transparent;
    margin-bottom: 1.5rem;
}
.article-share.news-share h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.article-share .share-buttons {
    gap: 0.4rem;
}

.news-share h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #6c757d; }

/* Condividi articolo: solo icone, stesso blu dei titoli (#024873), compatti */
.article-share .share-btn {
    background: #024873;
    padding: 0.35rem;
    justify-content: center;
}
.article-share .share-btn:hover {
    background: #024873;
    color: white;
}
.article-share .share-btn i {
    font-size: 0.95rem;
    margin: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

/* ========================================
   NEWS SIDEBAR STYLES
   ======================================== */

/* Card sidebar: unica regola per news e progetti (niente classi ripetute) */
.sidebar-widget,
.news-sidebar .sidebar-widget,
.news-sidebar .widget,
.progetti-sidebar .sidebar-widget,
.progetti-sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: visible;
}

.widget-title {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

/* Override per sidebar progetti - titoli neri */
.progetti-sidebar .widget-title {
    color: #024873 !important;
}

/* Sidebar News Compact */
.sidebar-news-compact {
    margin-bottom: 1.5rem;
}

/* Card singola: stessa resa in news e progetti sidebar (ombra su tutti i lati) */
.sidebar-news-compact-item {
    margin-bottom: 1rem;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px 2px rgba(0, 0, 0, 0.06);
    border: none;
}

.sidebar-news-compact-item:last-child {
    margin-bottom: 0;
}

.compact-news-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.compact-news-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.compact-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-news-content {
    flex: 1;
    min-width: 0;
}

.compact-news-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.compact-news-title a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    line-height: inherit;
    max-height: calc(1.3em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    /* Evita taglio orizzontale: il testo va a capo invece di uscire dal bordo */
}

.compact-news-title a:hover {
    color: var(--primary-blue);
}

.compact-news-date {
     font-size: 0.75rem;
     color: var(--text-muted);
     margin: 0;
 }

.sidebar-news-image:hover img {
    transform: scale(1.05);
}

.sidebar-news-content {
    flex: 1;
}

.sidebar-news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.sidebar-news-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.sidebar-news-title a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-news-title a:hover {
    color: var(--primary-green);
}

/* Sidebar View All */
.sidebar-view-all {
    text-align: center;
}

.sidebar-view-all .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-categories a:hover {
    color: var(--primary-green);
    padding-left: 0.5rem;
}

.sidebar-categories .count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--background-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: normal;
}

/* ========================================
   RESPONSIVE DESIGN - NEWS
   ======================================== */

@media (max-width: 768px) {
    .news-container {
        padding: 0 1rem;
    }
    
    .news-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .news-sidebar {
        min-width: auto;
        position: static;
    }
    
    .news-simple-header {
        padding: 1.5rem 0 1rem;
    }
    
    .news-title {
        font-size: 1.75rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .compact-news-image {
        width: 50px;
        height: 50px;
    }
    
    .compact-news-title {
        font-size: 0.85rem;
    }
    
    .compact-news-date {
        font-size: 0.7rem;
    }
    
    /* Progetti Responsive */
    .progetti-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .progetti-sidebar {
        min-width: auto;
        position: static;
    }
    
    .progetti-navigation-spacer {
        display: none;
    }
    
    .progetti-navigation {
        display: none;
    }
    
    .progetti-title {
        font-size: 2rem;
    }
    
    .progetti-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progetti-content-section {
        padding-top: 2rem;
    }
    
    .progetti-container {
        padding: 0 1rem;
    }
}

/**
 * PAGINA FONDAZIONE/ABOUT - Layout Professionale
 */

/* Hero Section - 50vh */
.fondazione-page-hero {
    height: 50vh;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.fondazione-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.fondazione-page-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fondazione-page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Content Wrapper - Overlap con hero */
.fondazione-content-wrapper {
    max-width: 1400px;
    margin: -30px auto 0;
    padding: 0 40px 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Main Content - Card bianca */
.fondazione-main-content {
    background: white;
    padding: 30px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Titolo pagina */
.fondazione-page-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* Titoli con underline gradient */
.fondazione-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
    text-transform: lowercase;
}
.fondazione-section-title::first-letter {
    text-transform: uppercase;
}

.fondazione-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #26BF94, #0078e8);
    border-radius: 2px;
}

.fondazione-subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    text-transform: lowercase;
}
.fondazione-subsection-title::first-letter {
    text-transform: uppercase;
}

/* Pagina About: titoli blu #024873 */
.page-template-page-about .fondazione-section-title,
.page-template-page-about .fondazione-subsection-title,
.page-template-page-about .fondazione-page-title {
    color: #024873;
}

/* Pagina Armando: titoli blu #024873 */
.page-template-page-armando .armando-section-header h2,
.page-template-page-armando-bis .armando-section-header h2,
.page-template-page-armando .video-title,
.page-template-page-armando-bis .video-title,
.page-template-page-armando .video-modal-title,
.page-template-page-armando-bis .video-modal-title {
    color: #024873;
}

/* Single Progetto: tutti i titoli h1 e h2 (titolo, contenuto, sezioni, sidebar, video, paginazione) blu #024873 */
.single-progetti .progetti-title,
.single-progetti .progetti-content h1,
.single-progetti .progetti-content h2,
.single-progetti .progetti-sidebar .progetti-item-title,
.single-progetti .progetti-sidebar .progetti-item-title a,
.single-progetti .armando-section-header h2,
.single-progetti .video-title,
.single-progetti .post-navigation .nav-subtitle,
.single-progetti .post-navigation .nav-title,
.single-progetti .post-navigation a {
    color: #024873 !important;
}

.single-progetti .post-navigation a:hover {
    color: #26BF94 !important;
}

/* Single News: tutti i titoli h1 e h2 (titolo articolo, contenuto, galleria, sidebar) blu #024873 */
.single-news .news-title,
.single-news .news-content h1,
.single-news .news-content h2,
.single-news .armando-section-header h2,
.single-news .news-sidebar .compact-news-title a,
.single-news .news-sidebar .progetti-item-title a {
    color: #024873 !important;
}

.single-news .news-sidebar .compact-news-title a:hover,
.single-news .news-sidebar .progetti-item-title a:hover {
    color: #26BF94 !important;
}

/* Archivio News: titoli card blu #024873 */
.post-type-archive-news .fondazione-card-title,
.post-type-archive-news .fondazione-card-title a {
    color: #024873;
}

/* Archivio Progetti: titoli card blu #024873 */
.post-type-archive-progetti .progetto-title,
.post-type-archive-progetti .progetto-title a {
    color: #024873 !important;
}

/* Homepage: titoli card news e progetti blu #024873 */
.home .fondazione-card-title,
.home .fondazione-card-title a,
.home .progetto-title,
.home .progetto-title a {
    color: #024873 !important;
}

.fondazione-content-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Liste con frecce */
.fondazione-content-list {
    list-style: none;
    margin: 20px 0;
}

.fondazione-content-list li {
    padding-left: 32px;
    margin-bottom: 12px;
    position: relative;
    color: #666;
}

.fondazione-content-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #024873;
    font-weight: 700;
}

/* Link CTA */
.fondazione-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #024873;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.fondazione-cta-link:hover {
    color: #26BF94;
    border-bottom-color: #26BF94;
    gap: 12px;
}

.fondazione-cta-link svg {
    transition: transform 0.3s ease;
}

.fondazione-cta-link:hover svg {
    transform: translateX(4px);
}

/* Sidebar - Sticky */
.fondazione-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Galleria sidebar About: una colonna, stesso aspetto delle card */
.fondazione-sidebar .fondazione-sidebar-gallery-grid.about-gallery-grid {
    display: block;
    gap: 0;
}
.fondazione-sidebar .fondazione-sidebar-gallery-grid .gallery-thumb {
    width: 100%;
    text-align: left;
    display: block;
    /* Evita "salto" del bottone (che crea bianco tra bordo e immagine) */
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: none !important;
}
.fondazione-sidebar .fondazione-sidebar-gallery-grid .gallery-thumb img {
    width: 100%;
    height: 260px; /* ancora più grandi */
    object-fit: cover;
}

@media (max-width: 768px) {
    .fondazione-sidebar .fondazione-sidebar-gallery-grid .gallery-thumb img {
        height: 210px;
    }
}

.fondazione-sidebar .fondazione-sidebar-gallery-grid .gallery-thumb:hover,
.fondazione-sidebar .fondazione-sidebar-gallery-grid .gallery-thumb:focus-visible {
    transform: none !important;
    box-shadow: none !important;
}

/* Card Immagine Sidebar */
.fondazione-sidebar-image-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(2, 72, 115, 0.1);
    margin-bottom: 24px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.fondazione-sidebar-image-card:hover {
    border-color: #024873;
    box-shadow: 0 12px 40px rgba(2, 72, 115, 0.15);
    transform: translateY(-4px);
}

/* About: niente ombra "sotto" e niente lift in hover */
.page-template-page-about .fondazione-sidebar-image-card:hover {
    box-shadow: 0 8px 30px rgba(2, 72, 115, 0.1);
    transform: none;
}

.fondazione-sidebar-image-wrapper {
    position: relative;
    overflow: hidden;
}

.fondazione-sidebar-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.fondazione-sidebar-image-card:hover .fondazione-sidebar-image {
    transform: scale(1.08);
}

.fondazione-sidebar-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 72, 115, 0.6), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fondazione-sidebar-image-card:hover .fondazione-sidebar-image-overlay {
    opacity: 1;
}

.fondazione-sidebar-image-caption {
    padding: 16px 20px;
    background: white;
    transition: background 0.3s ease;
}

.fondazione-sidebar-image-card:hover .fondazione-sidebar-image-caption {
    background: #f8f9fa;
}

.fondazione-sidebar-caption-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

/* Separatore tra immagini */
.fondazione-sidebar-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #26BF94, #0078e8);
    margin: 30px auto;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 968px) {
    .fondazione-page-hero h1 {
        font-size: 36px;
    }
    
    .fondazione-content-wrapper {
        grid-template-columns: 1fr;
        margin-top: -21px;
        padding: 0 20px 60px;
        gap: 30px;
    }
    
    .fondazione-main-content {
        padding: 40px 30px;
    }
    
    .fondazione-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .fondazione-page-hero {
        height: 40vh;
    }
    
    .fondazione-page-hero h1 {
        font-size: 28px;
    }
    
    .fondazione-main-content {
        padding: 30px 20px;
    }
    
    .fondazione-section-title {
        font-size: 26px;
    }
}











/**
 * PAGINA FORM - Segnala Progetto
 * CSS per template form con Contact Form 7
 * Font: Montserrat (già caricato nel tema)
 */

/* === HERO SECTION === */
.form-page-hero {
  padding: 80px 20px;
  text-align: center;
  color: white;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  position: relative;
}

.form-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.form-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-hero-icon svg {
  width: 40px;
  height: 40px;
}

.form-page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.form-page-hero p {
  font-size: 18px;
  opacity: 0.95;
}

/* === FORM CONTAINER === */
.form-page-container {
  max-width: 800px;
  margin: -60px auto 80px;
  padding: 0 20px;
}

.form-page-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}

/* === FORM INTRODUCTION === */
.form-page-intro {
  margin-bottom: 30px;

}

.form-page-intro h2 {
  font-size: 24px;
  font-weight: 700;
  color: #024873;
  margin-bottom: 12px;
}

.form-page-intro p {
  color: #666;
  line-height: 1.7;
  font-size: 16px;
}

/* === CONTACT FORM 7 STYLING === */

/* Form generale */
.form-page-card .wpcf7 {
  margin: 0;
}

.form-page-card .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Paragrafi (form groups) */
.form-page-card .wpcf7-form p {
  margin: 0;
}

/* Labels (blu #024873) */
/* ← rimosso duplicato .form-page-card .wpcf7-form label: interamente morto,
   ogni proprietà è ridichiarata dal blocco omonimo più sotto (14px / 8px) */

/* Input fields */
.form-page-card .wpcf7-form input[type="text"],
.form-page-card .wpcf7-form input[type="email"],
.form-page-card .wpcf7-form input[type="tel"],
.form-page-card .wpcf7-form input[type="url"],
.form-page-card .wpcf7-form input[type="number"],
.form-page-card .wpcf7-form input[type="date"],
.form-page-card .wpcf7-form select,
.form-page-card .wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-page-card .wpcf7-form input:focus,
.form-page-card .wpcf7-form select:focus,
.form-page-card .wpcf7-form textarea:focus {
  outline: none;
  background: white;
  border-color: #024873;
  box-shadow: 0 0 0 4px rgba(2, 72, 115, 0.1);
}

/* Textarea */
.form-page-card .wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select dropdown */
.form-page-card .wpcf7-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  appearance: none;
  padding-right: 40px;
}

/* Checkbox e Radio */
.form-page-card .wpcf7-form input[type="checkbox"],
.form-page-card .wpcf7-form input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #024873;
}

.form-page-card .wpcf7-form .wpcf7-list-item {
  margin: 0 0 12px 0;
}

.form-page-card .wpcf7-form .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.form-page-card .wpcf7-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 400;
  width: 100%;
}

.form-page-card .wpcf7-form .wpcf7-list-item label:hover {
  background: white;
  border-color: #024873;
}

.form-page-card .wpcf7-form .wpcf7-list-item input[type="radio"]:checked ~ .wpcf7-list-item-label,
.form-page-card .wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label {
  color: #024873;
  font-weight: 500;
}

/* File upload - stile unificato */
.form-page-card .wpcf7-form input[type="file"],
.form-page-card .wpcf7-file {
  width: 100%;
  padding: 40px 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.form-page-card .wpcf7-form input[type="file"]:hover,
.form-page-card .wpcf7-file:hover {
  border-color: #024873;
  background: #f0f4f8;
}

/* Privacy/Acceptance checkbox */
.form-page-card .wpcf7-form .wpcf7-acceptance {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.form-page-card .wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #024873;
  line-height: 1.6;
}

.form-page-card .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.form-page-card .wpcf7-form .wpcf7-acceptance a {
  color: #024873;
  text-decoration: underline;
}

/* Submit button - stesso gradiente degli altri bottoni (verde → blu) */
.form-page-card .wpcf7-form input[type="submit"],
.form-page-card .wpcf7-form button[type="submit"] {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #26BF94, #0078e8) !important;
  background-image: linear-gradient(to right, #26BF94, #0078e8) !important;
  background-color: #0078e8 !important;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.6s linear, background-color 0.6s linear, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 72, 115, 0.2);
  width: 100%;
}

.form-page-card .wpcf7-form input[type="submit"]:hover,
.form-page-card .wpcf7-form button[type="submit"]:hover {
  background: linear-gradient(to right, #0078e8, #0078e8) !important;
  background-image: linear-gradient(to right, #0078e8, #0078e8) !important;
  background-color: #0078e8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Validation errors */
.form-page-card .wpcf7-form .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.form-page-card .wpcf7-form .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

/* Response messages */
.form-page-card .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.form-page-card .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.form-page-card .wpcf7-mail-sent-ng,
.form-page-card .wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.form-page-card .wpcf7-spam-blocked {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* Durante invio: leggero feedback visivo (opzionale, senza velo pesante) */
.form-page-card .wpcf7-form.submitting input[type="submit"],
.form-page-card .wpcf7-form.submitting button[type="submit"] {
  opacity: 0.9;
  cursor: wait;
}

.form-page-card .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 768px) {
  .form-page-hero {
      padding: 60px 20px;
  }
  
  .form-page-hero h1 {
      font-size: 32px;
  }
  
  .form-page-hero p {
      font-size: 16px;
  }
  
  .form-page-card {
      padding: 40px 24px;
  }
  
  .form-page-intro h2 {
      font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .form-page-hero {
      padding: 40px 15px;
  }
  
  .form-page-hero h1 {
      font-size: 26px;
  }
  
  .form-hero-icon {
      width: 60px;
      height: 60px;
  }
  
  .form-hero-icon svg {
      width: 30px;
      height: 30px;
  }
  
  .form-page-container {
      margin-top: -40px;
      padding: 0 15px;
  }
  
  .form-page-card {
      padding: 30px 20px;
      border-radius: 16px;
  }
  
  .form-page-card .wpcf7-form input[type="submit"],
  .form-page-card .wpcf7-form button[type="submit"] {
      width: 100%;
  }
}



/**
 * FORM SEGNALA PROGETTO - Layout Definitivo
 */

/* === CSS PER WRAPPER 2 COLONNE === */

.form-page-card .form-row-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 20px !important;
  margin-bottom: 0 !important;
}

.form-page-card .form-row-2col p {
  margin-bottom: 28px !important;
}

/* Gestione form-row-1col se presente */
.form-page-card .form-row-1col {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

.form-page-card .form-row-1col p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .form-page-card .form-row-2col {
      grid-template-columns: 1fr !important;
      gap: 0 !important;
  }
}

/**
 * FORM SEGNALA PROGETTO - Stili specifici Contact Form 7
 */
.form-page-card .wpcf7-form {
    max-width: 100%;
}

.form-page-card .wpcf7-form h3,
.form-page-main h3,
.form-page-card h3 {
    color: #024873 !important;
}

.form-page-card .wpcf7-form h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.form-page-card .wpcf7-form h3:first-child {
    margin-top: 0;
}

.form-page-card .wpcf7-form p {
    margin-bottom: 0px;
}

/* Rimuovi tutti i <br> extra che Contact Form 7 inserisce */
.form-page-card .wpcf7-form br,
.form-page-card .wpcf7-form p br,
.form-page-card .wpcf7-form label br,
.form-page-card .wpcf7-form div br,
.form-page-card .wpcf7-form h3 br,
.form-page-card .wpcf7-form .form-row-2col br,
.form-page-card .wpcf7-form .form-row-1col br {
    display: none !important;
}

/* Rimuovi spazi extra dai paragrafi vuoti */
.form-page-card .wpcf7-form p:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    line-height: 0;
}

/* Rimuovi margin-top extra dai paragrafi */
.form-page-card .wpcf7-form p {
    margin-top: 0;
}

/* Rimuovi spazi extra dopo gli h3 */
.form-page-card .wpcf7-form h3 {
    margin-bottom: 24px;
    margin-top: 40px;
}

.form-page-card .wpcf7-form h3:first-of-type {
    margin-top: 0;
}

/* Rimuovi spazi extra dai paragrafi vuoti */
.form-page-card .wpcf7-form p:empty,
.form-page-card .wpcf7-form p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
}

/* Layout: solo i div form-row-2col hanno 2 colonne, tutti gli altri sono full-width */
.form-page-card .wpcf7-form > p {
    margin-bottom: 20px;
    width: 100%;
}

.form-page-card .wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #024873;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-page-card .wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-page-card .wpcf7-form-control:focus {
    outline: none;
    border-color: #024873;
    box-shadow: 0 0 0 3px rgba(2, 72, 115, 0.1);
}

.form-page-card .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-page-card .wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-page-card .wpcf7-radio,
.form-page-card .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.form-page-card .wpcf7-radio label,
.form-page-card .wpcf7-checkbox label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-page-card .wpcf7-radio label:hover,
.form-page-card .wpcf7-checkbox label:hover {
    background: white;
    border-color: #024873;
}

.form-page-card .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label,
.form-page-card .wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label {
    color: #024873;
    font-weight: 500;
}

.form-page-card .wpcf7-radio input[type="radio"],
.form-page-card .wpcf7-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #024873;
    flex-shrink: 0;
}

/* File upload già definito sopra nella sezione generale */

.form-page-card .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
}

.form-page-card .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #024873;
    flex-shrink: 0;
}

.form-page-card .wpcf7-acceptance label {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #024873;
    margin-bottom: 0;
}

.form-page-card .wpcf7-acceptance a {
    color: #024873;
    text-decoration: underline;
}

.form-page-card .wpcf7-acceptance a:hover {
    color: #26BF94;
}

.form-page-card .form-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.form-page-card .btn-submit,
.form-page-card .wpcf7-submit {
    background: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-image: linear-gradient(to right, #26BF94, #0078e8) !important;
    background-color: #0078e8 !important;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.6s linear, background-color 0.6s linear, transform 0.3s ease, box-shadow 0.3s ease;
    width: 100% !important;
    flex: 1;
    display: block;
}

/* Bottone sempre pieno colore (niente velo opaco); quando disabilitato solo cursore diverso */
.form-page-card .wpcf7-submit:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.form-page-card .wpcf7-submit:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.form-page-card .btn-submit:hover,
.form-page-card .wpcf7-submit:hover {
    background: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-image: linear-gradient(to right, #0078e8, #0078e8) !important;
    background-color: #0078e8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.form-page-card .btn-cancel {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-page-card .btn-cancel:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    /* Su mobile, tutti i campi vanno su una colonna */
    .form-page-card .wpcf7-form > p {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .form-page-card .form-buttons {
        flex-direction: column;
    }
    
    .form-page-card .btn-submit,
    .form-page-card .wpcf7-submit,
    .form-page-card .btn-cancel {
        width: 100%;
    }
}


.root-data-givewp-embed{
  margin-bottom: 30px !important;
}

 
.givewp-donation-form>.givewp-layouts-header .givewp-layouts-header__templates-ms .givewp-layouts-headerTitle{
  color: #024873 !important;
}





/* Armando - Content two columns */
.armando-content-section {
  margin: 0rem 0 4rem 0;
}

.armando-content-columns {
  column-count: 2;
  column-gap: 3rem;
  column-rule: 1px solid #e0e0e0; /* opzionale, separatore sottile */
}

/* Evita che titoli e paragrafi vengano spezzati tra le colonne */
.armando-content-columns h2,
.armando-content-columns h3,
.armando-content-columns h4 {
  break-after: avoid;
  column-span: all; /* i titoli si estendono su tutta la larghezza, opzionale */
}

.armando-content-columns p {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Responsive: una colonna sotto 768px */
@media (max-width: 768px) {
  .armando-content-columns {
      column-count: 1;
  }
}

/* ============================================================
   TEMPLATE DONAZIONE ALLA FONDAZIONE
   Hero dedicata (gradient + immagine opzionale) + content gap.
   Estratto da <style> inline del template (refactor).
   ============================================================ */
.donazione-hero {
  position: relative;
  min-height: 380px;
  padding: 120px 20px;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* overflow: hidden; */
}

.donazione-hero .hero-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.donazione-hero .hero-overlay .container {
  width: 100%;
}

.donazione-hero .hero-content {
  text-align: center;
  padding-top: 4rem;
}

.donazione-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-transform: lowercase;
}

.donazione-hero .hero-title::first-letter {
  text-transform: uppercase;
}

.donazione-content-gap {
  padding-top: 40px;
}

.donazione-featured-image {
  margin: 0 0 1.5em 0;
}

.donazione-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Testo paragrafi nel contenuto: grigio (override colore globale) */
.page-template-template-donazione-alla-fondazione .news-main-content .page-content p,
.page-template-template-donazione-alla-fondazione .page-content p {
  color: #666666;
}

@media (max-width: 768px) {
  .donazione-hero {
    min-height: 280px;
    padding: 60px 20px;
  }

  .donazione-hero .hero-title {
    font-size: 2rem;
  }

  .donazione-content-gap {
    padding-top: 24px;
  }
}