:root {
  --primary-color: #003366;
  --accent-color: #bb9b49;
  --light-bg: #f8f5f0;
  --font-family: 'Garamond', 'Times New Roman', serif;
  --heading-font: 'Cinzel', serif;
  --accent-font: 'Playfair Display', serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: #333;
  line-height: 1.7;
}

.about-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 2rem;
  position: relative;
  border-bottom: 6px solid var(--accent-color);
  font-family: var(--heading-font);
}

.page-header {
  text-align: center;
  margin-top: 2rem;
}

.quote-section {
  font-style: italic;
  text-align: center;
  color: #555;
  margin: 2rem auto;
  max-width: 600px;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  font-family: var(--accent-font);
}

.featured-title {
  text-align: center;
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.8rem;
  position: relative;
}

.featured-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0.5rem auto;
}

.section-icon {
  font-size: 2rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.center {
  text-align: center;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.team-member {
  padding: 1rem;
  color: var(--light-bg);
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}

.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.team-member small {
  display: block;
  font-weight: normal;
  color: #dcdcdc;
  margin-top: 0.25rem;
}

.cta-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
  margin-bottom: 0.5rem;
}

.btn, .button {
  padding: 0.8rem 1.8rem;
  font-family: var(--heading-font);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.btn-primary, .primary-button {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary::before, .primary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-primary:hover, .primary-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before, .primary-button:hover::before {
  left: 100%;
}

.btn-secondary, .secondary-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover, .secondary-button:hover {
  background-color: rgba(0, 51, 102, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
  background-size: 50% 100%;
  background-repeat: no-repeat;
}

.fade-in {
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE FIX === */
@media screen and (max-width: 1000px) {
  .main-header h1 {
    text-align: center;
    width: 100%;
    margin: 0 auto; /* Assicura che il titolo sia centrato */
  }

  /* Centra i bottoni sotto il titolo */
  .user-area {
    display: flex;
    flex-direction: column;   /* Disposizione verticale dei bottoni */
    justify-content: center;  /* Centra verticalmente */
    align-items: center;      /* Centra orizzontalmente */
    width: 100%;              /* Occupa tutta la larghezza disponibile */
    margin-top: 35px;         /* Aggiungi un po' di spazio sopra i bottoni */
    text-align: center;
  }

  .user-area a {
    margin: 10px 0;           /* Spazio tra i bottoni */
  }
}

@media screen and (max-width: 783px) {
  .main-header h1 {
    text-align: center;
    width: 100%; 
  }

  .about-header {
    padding: 1rem;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr;  /* Mostra una colonna */
  }
}

@media screen and (max-width: 576px) {
  .featured-title {
    font-size: 1.4rem;
  }

  .center {
    margin-bottom: 1rem;
  }

  .cta-container {
    flex-direction: column;  /* Disposizione verticale */
    gap: 1rem;
    margin: 1.5rem 0;         /* Aggiungi spazio tra i bottoni */
    align-items: center;
  }

}
