/* 1. CONFIGURAZIONE GLOBALE*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/*2. HERO*/
.hero-section {
  width: 100%;
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../Images/Eli_2.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

/* 
   3. NAVBAR & LOGO*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 20px 50px;
  z-index: 999;
  transition: all 0.4s ease;
}

.logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-height: 60px;
  width: auto;
  transition: opacity 0.4s ease;
}

/* Logica di scambio logo */
.logo-white { display: block; }
.logo-black { display: none; }

.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .logo-black { display: block; }

.navbar.scrolled {
  background-color: #ffffff;
  padding: 10px 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: #333333;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: #620180;
}

.navbar.scrolled .nav-links a::after {
  background-color: #620180;
}

/* 4.  HERO CONTENUTI*/
.hero-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 0 50px;
}

.hero-image-box img {
  width: 550px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-text-box h1 {
  color: #ffffff;
  font-weight: 300;
  font-size: 4rem;
  margin-bottom: 10px;
}

.hero-text-box p {
  color: #cccccc;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* 5. PULSANTI*/
.button-group {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #620180;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-orange {
  background-color: #f58e00;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  width: 80%;
  display: inline-block;
  text-align: center;
}

.btn-orange:hover {
  background-color: #620180;
}

/*6. SEZIONE ABOUT*/
.about-section {
  background-color: #f4f8fa; 
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.about-text-box {
  background-color: #ffffff;
  padding: 80px 150px 80px 80px; 
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  flex: 1;
  z-index: 1;
}

.about-text-box .small-title {
  display: block;
  font-weight: 300;
  color: #555555;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-text-box h2 {
  font-size: 2.8rem;
  font-weight: 300;
  color: #333333;
  line-height: 1.2;
  margin-bottom: 30px;
}

.about-text-box p {
  color: #999999;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image-box {
  flex: 0 0 400px;
  margin-left: -100px;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-radius: 6px;
  overflow: hidden;
}

.about-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 7. SEZIONE SERVIZI */
.services-section {
  padding: 100px 20px;
  background-color: #ffffff;
  text-align: center;
}

.services-header {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.services-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #333333;
  margin-bottom: 15px;
}

.services-header p {
  font-size: 1.1rem;
  color: #888888;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.service-icon {
  width: 80px;
  height: 80px;
  border: 2px solid #620180;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  color: #620180;
}

.service-icon svg {
  width: 35px;
  height: 35px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.95rem;
  color: #777777;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* 8. FASCIA CALL TO ACTIOn*/
.cta-banner {
  background: linear-gradient(90deg, #620180, #620180);
  padding: 50px 20px;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-container h2 {
  color: #ffffff;
  font-weight: 300;
  font-size: 2rem;
  margin: 0;
}

.cta-container .btn-orange {
  width: auto; 
  padding: 12px 40px;
}

/*9. SEZIONE CONTATTI E SFONDO */
.contact-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Images/Doppia_amb.webp');
  background-size: cover;
  background-position: center;
  padding: 200px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-box {
  background-color: #620180;
  color: #ffffff;
  padding: 50px 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 350px;
  width: 100%;
}

.contact-box h3 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.circle-icon {
  width: 70px;
  height: 70px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-icon svg {
  width: 35px;
  height: 35px;
}

.contact-box p {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.4;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  background-color: #ffffff;
  color: #620180;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* 10. FOOTER FINALE*/
.site-footer {
  background-color: #ffffff;
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid #eeeeee;
}

.site-footer p {
  color: #999999;
  font-size: 0.9rem;
  margin: 0;
}

/* 11. PAGINA VOLONTARI*/
.volunteer-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Images/Amb2notte.webp');
  background-size: cover;
  background-position: center;
  padding: 150px 20px 80px 20px; 
  text-align: center;
  color: #ffffff;
  height: 100vh;
  position: relative;
}

.volunteer-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.volunteer-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.volunteer-content-section {
  padding: 100px 20px;
  background-color: #f9f9f9;
  height: 100vh;
}

.volunteer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.volunteer-text {
  flex: 1;
}

.volunteer-text h2 {
  font-size: 2rem;
  color: #333333;
  margin-bottom: 20px;
}

.volunteer-text p {
  color: #666666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.volunteer-text h3 {
  color: #620180;
  margin-bottom: 15px;
}

.requirements-list {
  list-style-position: inside;
  color: #555555;
  line-height: 1.8;
}

/* Modulo / Form */
.volunteer-form-box {
  flex: 1;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.volunteer-form-box h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #333333;
}

.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #620180;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.privacy-check input {
  margin-top: 4px;
}

.privacy-check label {
  font-size: 0.85rem;
  color: #777777;
  line-height: 1.4;
}

.privacy-check a {
  color: #620180;
}

.form-submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 15px;
  font-size: 1rem;
}

/* Freccia animata scroll */
.scroll-down-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down-arrow svg {
  width: 28px;
  height: 28px;
}

.scroll-down-arrow:hover {
  background-color: #00b4d8;
  border-color: #00b4d8;
  color: #ffffff;
  animation-play-state: paused;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/*12. PAGINA 112*/
.emergency-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../Images/Eli_1.webp');
  background-size: cover;
  background-position: center;
  padding: 150px 20px 80px 20px;
  text-align: center;
  color: #ffffff;
}

.emergency-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.emergency-details {
  padding: 80px 20px;
  background-color: #ffffff;
}

.emergency-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.emergency-text-block {
  flex: 1;
}

.emergency-text-block h2 {
  font-size: 2.2rem;
  color: #333333;
  margin-bottom: 20px;
}

.emergency-text-block h3 {
  font-size: 1.4rem;
  color: #620180;
  margin: 30px 0 15px 0;
}

.emergency-text-block p {
  color: #555555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.skills-list {
  list-style-type: none;
}

.skills-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #555555;
  line-height: 1.6;
}

.skills-list li::before {
  content: '•';
  color: #620180;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

.emergency-image-block {
  flex: 1;
}

.emergency-image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.emergency-cta {
  background-color: #f4f8fa;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #eeeeee;
}

.emergency-cta h2 {
  color: #333333;
  margin-bottom: 15px;
}

.emergency-cta p {
  color: #666666;
  margin-bottom: 25px;
}

/* Catena del Soccorso  */
.timeline-section {
  padding: 80px 20px;
  background-color: #fcfcfc;
  border-top: 1px solid #eeeeee;
}

.timeline-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.timeline-header h2 {
  font-size: 2.2rem;
  color: #333333;
  margin-bottom: 10px;
}

.timeline-header p {
  color: #666666;
  font-size: 1.1rem;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-text { flex: 1; }
.timeline-image { flex: 1; }

.step-badge {
  width: 50px;
  height: 50px;
  background-color: #620180;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(98, 1, 128, 0.3);
}

.timeline-text h3 {
  font-size: 1.6rem;
  color: #333333;
  margin-bottom: 15px;
}

.timeline-text p {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.8;
}

.timeline-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

/* 13. PAGINA CONTATTI*/
.contact-page-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Images/Eli_1.webp');
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  padding: 150px 20px 80px 20px;
  text-align: center;
  color: #ffffff;
}

.contact-page-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.quick-info-section {
  position: relative;
  z-index: 10;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: -80px auto 0 auto;
}

.info-card {
  background-color: #ffffff;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-icon {
  width: 60px;
  height: 60px;
  background-color: #f4f8fa;
  color: #620180;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.info-icon svg {
  width: 30px;
  height: 30px;
}

.info-card h3 {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 10px;
}

.info-card p {
  color: #666666;
  font-size: 1rem;
  line-height: 1.6;
}

.map-form-section {
  padding: 40px 20px 80px 20px;
  background-color: #fcfcfc;
}

.map-form-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-box {
  flex: 1;
  min-height: 400px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 450px;
}

.form-box {
  flex: 1;
  padding: 50px 40px;
}

.form-box h2 {
  font-size: 1.8rem;
  color: #333333;
  margin-bottom: 30px;
}

/* 14. PAGINA PRIVACY POLICY*/
.privacy-header {
  background-color: #620180;
  padding: 140px 20px 60px 20px;
  text-align: center;
  color: #ffffff;
}

.privacy-header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.privacy-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

.privacy-content-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-container h2 {
  font-size: 1.8rem;
  color: #333333;
  margin-bottom: 25px;
}

.privacy-container h3 {
  font-size: 1.3rem;
  color: #620180;
  margin: 35px 0 15px 0;
}

.privacy-container p,
.privacy-container li {
  color: #555555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.privacy-container ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.privacy-container code {
  background-color: #f4f4f4;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
  color: #620180;
}

/* 15. PAGINA DONAZIONI*/
.donate-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../Images/Doppia_amb.webp');
  background-size: cover;
  background-position: center;
  padding: 150px 20px 80px 20px;
  text-align: center;
  color: #ffffff;
}

.donate-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.donate-header p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

.impact-section {
  padding: 100px 20px;
  background-color: #fcfcfc;
  text-align: center;
}

.impact-container h2 {
  font-size: 2.2rem;
  color: #333333;
  margin-bottom: 15px;
}

.impact-subtitle {
  color: #666666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.impact-card {
  background-color: #ffffff;
  padding: 40px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.impact-icon {
  height: 80px;
  width: 80px;
  border: 2px solid #620180;
  border-radius: 50%;
  color: #620180;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.impact-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.75;
  display: block;
}

.impact-card h3 {
  font-size: 1.3rem;
  color: #333333;
  margin-bottom: 10px;
}

.impact-card p {
  color: #666666;
  line-height: 1.6;
}

.methods-section {
  padding: 0 20px 80px 20px;
  background-color: #fcfcfc;
}

.methods-container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.method-box {
  flex: 1;
  background-color: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-top: 5px solid #620180;
}

.method-box h3 {
  font-size: 1.6rem;
  color: #333333;
  margin-bottom: 15px;
}

.method-box p {
  color: #555555;
  line-height: 1.7;
  margin-bottom: 25px;
}

.iban-display, .cf-display {
  background-color: #f4f8fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px dashed #cccccc;
}

.iban-display span, .cf-display span {
  display: block;
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.iban-display strong, .cf-display strong {
  display: block;
  font-size: 1.2rem;
  color: #620180;
  letter-spacing: 1px;
}

.btn-copia {
  display: block;
  margin: 10px auto 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #620180;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  display: inline-block;
}

.btn-copia:hover {
  background-color: #4a0160;
  transform: translateY(-1px);
}

.tax-note {
  font-size: 0.85rem !important;
  color: #888888 !important;
  margin-bottom: 0 !important;
}

/* Riquadro Donazioni Homepage */
.homepage-donate-box {
  background-color: #620180;
  color: #ffffff;
  padding: 50px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.homepage-donate-box h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.donate-box-icon {
  margin-bottom: 20px;
}

.donate-box-icon svg {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.homepage-donate-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.9;
}

.btn-homepage-donate {
  display: inline-block;
  background-color: #ffffff;
  color: #620180;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-homepage-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  background-color: #f8f8f8;
}

/* 16. MODALITA' MOBILE (< 768px)*/
@media screen and (max-width: 768px) {

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 15px 10px 10px 10px !important;
    box-sizing: border-box !important;
  }

  .navbar .logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto 18px auto !important;
    float: none !important;
    position: static !important;
    transform: none !important;
  }

  .navbar .logo img,
  .logo-white,
  .logo-black {
    display: inline-block !important;
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .navbar:not(.scrolled) .logo-black { display: none !important; }
  .navbar.scrolled .logo-white { display: none !important; }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links a {
    font-size: 0.80rem !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
  }

  header,
  .hero-section,
  .volunteer-header {
    padding-top: 170px !important;
    padding-bottom: 40px !important;
    height: auto !important;
    min-height: auto !important;
  }

  section > div,
  header > div,
  .hero-content,
  .about-section,
  .about-container,
  .volunteer-container,
  .quick-info-grid,
  .map-form-container,
  .contact-box {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    position: static !important;
  }

  section img,
  .volunteer-container > div,
  .info-card,
  .map-box,
  .form-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto 15px auto !important;
  }

  h1 {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  h2 { font-size: 1.4rem !important; }

  /* Immagini generali (esclusa la timeline) */
  section > div,
  section > div > div,
  .hero-card,
  .hero-image,
  .about-image,
  .image-box,
  .image-container,
  .card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  section img:not(.timeline-section img):not(.timeline-row img):not(.timeline-image img),
  header img:not(.navbar .logo img),
  .hero-card img,
  .hero-image img,
  .about-image img,
  .image-box img,
  .card img {
    width: 92% !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 10px auto 20px auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
  }

  /* IMMAGINI TIMELINE: Larghezza corretta e non ridotta */
  .timeline-section img,
  .timeline-row img,
  .timeline-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
  }

  .about-image,
  .image-box {
    padding: 15px !important;
    margin: 15px auto !important;
    width: 92% !important;
    max-width: 440px !important;
    border-radius: 20px !important;
  }

  /* Schede e Moduli Padding e Spazi */
  .volunteer-form-box,
  .contact-box,
  .form-box,
  .cta-box,
  .info-card,
  .about-content,
  .volunteer-text {
    width: 92% !important;
    max-width: 440px !important;
    margin: 20px auto !important;
    padding: 25px 20px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .input-group input,
  .input-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
  }

  /* Cerchio icona email */
  .circle-icon {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    border-radius: 50% !important;
    margin: 15px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .circle-icon svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
  }

  .social-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* LOGHI SOCIAL: Dimensione e centratura RISOLTO */
  .social-links a.social-icon svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    margin: 3px auto 0 auto !important;
    display: block !important;
  }

  .btn-orange,
  button[type="submit"],
  .form-submit-btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 15px auto 5px auto !important;
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }

  /* distanziamento */
  section,
  .volunteer-content-section,
  .contact-section,
  .cta-banner {
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    clear: both !important;
    transform: none !important;
    height: auto !important;
    min-height: auto !important;
  }

  .contact-box,
  #contatti-ancora {
    position: static !important;
    margin: 40px auto 30px auto !important;
    z-index: 1 !important;
    transform: none !important;
  }

  .volunteer-form-box,
  .form-box {
    position: static !important;
    margin-bottom: 40px !important;
    z-index: 1 !important;
  }

  p, li, h1, h2, h3 {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
  }

  .requirements-list {
    padding-left: 20px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
  }

  .scroll-down-arrow,
  .scroll.down.arrow {
    display: none !important;
  }

  /* SVG nelle schede mobile */
  .donation-card svg,
  .donation-box svg,
  .card svg,
  .info-card svg,
  .icon-box svg,
  section svg:not(.circle-icon svg):not(.social-icon svg) {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    margin: 10px auto 18px auto !important;
    display: block !important;
  }

  /* Respiro testi schede bianche */
  .about-text-box,
  .volunteer-text,
  .about-container > div:first-child,
  .service-card,
  .info-card,
  .impact-card,
  .method-box {
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    box-sizing: border-box !important;
  }

  .about-text-box {
    width: 92% !important;
    max-width: 440px !important;
    margin: 20px auto !important;
    border-radius: 16px !important;
  }

  .homepage-donate-box {
    width: 90% !important;
    max-width: 400px !important;
    margin: 20px auto !important;
    padding: 35px 20px !important;
    box-sizing: border-box !important;
  }

  .homepage-donate-box p {
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .homepage-donate-box .btn-homepage-donate {
    width: 100% !important;
    max-width: 280px !important;
    margin: 10px auto 0 auto !important;
    padding: 12px 20px !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .timeline-image {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 15px 0 !important;
  }

  .timeline-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
  }
}

/* ==========================================
   STILI AGGIUNTIVI PER LA CHECK-LIST
   ========================================== */
.checklist-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 999;
}

.checklist-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  box-sizing: border-box;
}

.checklist-back-btn {
  background: #f1f5f9;
  color: #334155;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50px;
}

.checklist-main-container {
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.checklist-title-box {
  margin-bottom: 25px;
}

.checklist-title-box p {
  color: #666666;
  font-size: 0.9rem;
}

.checklist-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.checklist-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.checklist-grid-top .input-group {
  margin-bottom: 0;
}

.checklist-grid-top label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
  display: block;
}

.checklist-select,
.checklist-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  box-sizing: border-box;
}

.checklist-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 25px 0;
}

.checklist-section-title {
  font-size: 1.05rem;
  color: #620180;
  margin-bottom: 15px;
}

.checklist-items-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.check-item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 8px;
}

.checklist-item-text {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.btn-group-p-np {
  display: flex;
  gap: 8px;
}

.btn-p-np input[type="radio"] {
  display: none;
}

.btn-p-np label {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  color: #475569;
  transition: all 0.2s ease;
}

.btn-p-np input[value="P"]:checked + label {
  background-color: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.btn-p-np input[value="NP"]:checked + label {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

.checklist-textarea-group {
  margin-bottom: 30px;
}

.checklist-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.checklist-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background-color: #620180;
  color: white;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .checklist-grid-top {
    grid-template-columns: 1fr !important;
  }
  .check-item-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .btn-group-p-np {
    align-self: stretch !important;
    display: flex !important;
  }
  .btn-p-np {
    flex: 1 !important;
  }
  .btn-p-np label {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .checklist-main-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.checklist-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
  display: block;
}

.btn-p-np input[value="OK"]:checked + label {
  background-color: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.btn-p-np input[value="ORD"]:checked + label {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}