@import url('https://fonts.googleapis.com/css?family=Montserrat:700,400&display=swap');

body, html {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

:root {
  --primary: #80975d;    /* Verde principale */
  --secondary: #517757;  /* Verde oliva */
  --accent: #aca598;     /* Beige */
  --text: #333333;
  --background: #FFFFFF;
  --light-bg: #F5F5F5;
  --overlay: rgba(0, 0, 0, 0.4); /* Per overlay video */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  font-size: 18px; /* Aumentato per maggiore leggibilità */
}

/* Header */
.header {
  background: var(--background);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown Sedi */
.dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1100;
  display: none;
  min-width: 300px;
}

.dropdown.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  display: none;
}

.dropdown-overlay.active {
  display: block;
}

.dropdown-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.dropdown-item {
  padding: 1rem;
  border-bottom: 1px solid var(--light-bg);
  transition: background-color 0.3s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
}

.dropdown-link {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-link i {
  color: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Pagina Sede */
.location-info-section {
  background-color: var(--light-bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h2 i {
  color: var(--primary);
}

.info-card address {
  font-style: normal;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: var(--primary);
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--primary);
}

.opening-hours {
  margin-bottom: 1.5rem;
}

.opening-hours h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.opening-hours i {
  color: var(--primary);
}

.opening-hours ul {
  list-style: none;
  padding: 0;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.opening-hours li:last-child {
  border-bottom: none;
}

.directions-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.directions-button:hover {
  background: var(--secondary);
}

.location-map iframe {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Calendario Attività */
.calendar-section {
  background-color: var(--light-bg);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activity-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.activity-date {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: center;
}

.activity-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.activity-date .time {
  font-size: 0.9rem;
}

.activity-content {
  padding: 1.5rem;
}

.activity-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.activity-instructor {
  display: block;
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Come Raggiungerci */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.direction-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.direction-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.direction-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.direction-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.direction-card li:before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Galleria Foto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    order: -1;
  }

  .opening-hours li {
    flex-direction: column;
    gap: 0.5rem;
  }

  .gallery-item img {
    height: 200px;
  }
}

/* Pagina Donazioni */
.cinque-per-mille-section {
  background-color: var(--light-bg);
}

.cinque-per-mille-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tax-code-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tax-code-box strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin: 1rem 0;
}

.copy-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.copy-button:hover {
  background: var(--secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.cinque-per-mille-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Metodi di donazione */
.donation-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.donation-method-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}

.donation-method-card .method-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin: 1.2rem auto 0.5rem auto;
}

.donation-method-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
  text-align: center;
}

.donation-method-card p {
  text-align: center;
  margin: 0 0 0.7rem 0;
}

.donation-method-card .method-details {
  padding: 0 1.2rem 1.2rem 1.2rem;
  text-align: center;
}

.paypal-button.disabled {
  background: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  border: none !important;
}

.method-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

.paypal-button,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.paypal-button:hover,
.link-button:hover {
  background: var(--secondary);
}

/* Sezione Socio */
.member-section {
  background-color: var(--light-bg);
}

.member-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.benefits-list i {
  color: var(--primary);
}

.membership-fee {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fee-amount {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 2rem;
  vertical-align: super;
}

.period {
  font-size: 1.2rem;
  color: #666;
}

.member-image img.rounded-image {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  display: block;
}

/* Sezione Trasparenza */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.transparency-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.percentage {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.documents-section {
  margin-top: 3rem;
  text-align: center;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease;
}

.document-link:hover {
  transform: translateY(-2px);
}

.document-link i {
  color: var(--primary);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .cinque-per-mille-content,
  .member-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-grid,
  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .cinque-per-mille-image,
  .member-image img.rounded-image {
    order: -1;
  }

  .tax-code-box strong {
    font-size: 1.5rem;
  }

  .fee-amount {
    font-size: 2.5rem;
  }
}

/* Pagina Attività */
.services-section {
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.service-link:hover {
  text-decoration: underline;
}

/* Attività Terapeutiche */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activity-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.activity-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-content {
  padding: 1.5rem;
}

.activity-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.activity-details {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.activity-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.activity-details i {
  color: var(--primary);
}

/* Attività Ricreative */
.recreational-section {
  background-color: var(--light-bg);
}

.recreational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recreational-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.recreational-card:hover {
  transform: translateY(-5px);
}

.recreational-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.recreational-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .services-grid,
  .activities-grid,
  .recreational-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
  }
}

/* Pagina Contatti */
.contact-section {
  background-color: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.privacy-check {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.privacy-check label {
  font-size: 0.9rem;
}

.privacy-check a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-check a:hover {
  text-decoration: underline;
}

.submit-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background: var(--secondary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  justify-items: center;
}

.info-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 1.7rem 1.2rem 1.2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 260px;
  transition: box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: 0 6px 24px rgba(122,146,87,0.13);
}

.info-card i {
  font-size: 2.3rem;
  color: #7a9257;
  margin-bottom: 0.7rem;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #222;
}

.info-card p {
  margin: 0.2rem 0 0.2rem 0;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.info-card .info-note {
  color: #888;
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 0.3rem;
}

.social-links {
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--secondary);
}

.map-section {
  padding-bottom: 0;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .contact-form-container,
  .info-card {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .contact-section .info-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact-section .info-card {
    max-width: 100%;
    min-width: 0;
    padding: 1.2rem 0.7rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background-image: url('../images/new-images/img9.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 16px rgba(0,0,0,0.7), 0 1px 0 #333;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-buttons .cta-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Animazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sezioni */
.section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-size: 2.2rem;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--text);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--light-bg);
  padding: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page Hero */
.page-hero {
  background-color: var(--primary);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

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

/* Storia */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-content h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.story-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.achievement-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievement-list i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Valori */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

/* Sedi */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content {
  padding: 2rem;
}

.location-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.location-details {
  list-style: none;
  margin: 1.5rem 0;
}

.location-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.location-details i {
  color: var(--primary);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary);
}

.team-member h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image {
    order: -1;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .achievement-list {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .team-member img {
    width: 150px;
    height: 150px;
  }
}

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

/* Grid per le cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* CTA buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 1.1rem;
}

.cta-button:hover {
  background-color: #357ABD;
}

.cta-secondary {
  background-color: var(--secondary);
}

.cta-secondary:hover {
  background-color: #738668;
}

/* Sezione donazioni */
.donation-box {
  background-color: var(--accent);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

.donation-box h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Sezione attività */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.activity-item {
  text-align: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 10px;
}

.activity-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--light-bg);
  padding: 4rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer a:hover::before {
  opacity: 1;
  left: -15px;
}

/* Menu mobile */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Animazioni menu */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideIn 0.3s ease forwards;
  }

  .nav-menu.closing {
    animation: slideOut 0.3s ease forwards;
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .donation-box {
    padding: 2rem 1rem;
  }
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 1rem;
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: white;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background: var(--primary);
  color: white;
}

.cookie-btn.accept:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.cookie-btn.reject {
  background: transparent;
  color: white;
  border: 2px solid #666;
}

.cookie-btn.reject:hover {
  background: #666;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 150px;
  }
}

/* Progetto Africa Styles */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-text h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.content-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.future-goals {
  margin-top: 2rem;
}

.goals-list {
  list-style: none;
  padding: 0;
}

.goals-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goals-list i {
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Sedi Operative Styles */
.sedi-operative {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.sedi-operative h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.sede-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sede-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.sede-info p {
  margin: 0;
  color: #666;
}

/* Responsive adjustments for Progetto Africa */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.africa-image-container {
  position: relative;
}
.africa-overlay-text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.1) 100%, transparent 100%);
  padding: 2.2rem 2rem 1.2rem 2rem;
  box-sizing: border-box;
}
.africa-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.africa-subtitle {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.africa-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
  background: #fff;
}

.africa-card .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

.donation-box .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #f8f9fa;
  color: #517757;
}

/* Effetti hover per la pagina Progetto Africa */
.help-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.help-card a:first-child:hover {
  background: #f8f9fa;
}

.help-card a:last-child:hover {
  background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
  .africa-title {
    font-size: 1.3rem;
  }
  .africa-subtitle {
    font-size: 0.95rem;
  }
  .africa-overlay-text {
    padding: 1.2rem 1rem 0.7rem 1rem;
  }
  .africa-card .card-content {
    padding: 1.2rem 1rem 1rem 1rem !important;
  }
}

.badge-soon {
  display: inline-block;
  background: #e6b800;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2em 0.7em;
  border-radius: 12px;
  margin-left: 0.5em;
  vertical-align: middle;
  letter-spacing: 1px;
}

.cf-example-box {
  background: #f9f9f9;
  border: 2px solid #e6b800;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin: 0 auto 1.5rem auto;
  max-width: 350px;
  box-shadow: 0 2px 10px rgba(230,184,0,0.07);
}
.cf-example-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #b38b00;
  margin-bottom: 0.7rem;
  text-align: center;
}
.cf-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.cf-label {
  color: #444;
  font-weight: 500;
}
.cf-code {
  font-family: 'Courier New', Courier, monospace;
  background: #fffbe6;
  color: #b38b00;
  font-weight: 700;
  padding: 0.2em 0.7em;
  border-radius: 8px;
  font-size: 1.1em;
  letter-spacing: 2px;
  border: 1px solid #e6b800;
}
.cf-signature {
  font-family: 'Dancing Script', cursive, 'Comic Sans MS', sans-serif;
  color: #888;
  font-size: 1.1em;
  border-bottom: 1px dashed #bbb;
  padding: 0 0.5em;
  margin-left: 0.5em;
}
