/* Font e Colori di Base */
body {
  font-family: "Titillium Web", sans-serif;
  background-color: #ffffff;
  color: #333333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a,
a:hover {
  color: #a21c26;
  text-decoration: none;
  transition: all 0.3s ease;
}

section {
  padding: 60px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background-color: #a31621;
  padding: 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  font-family: "Titillium Web", sans-serif;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content .logo {
  width: 100px; /* Dimensione del logo */
  height: auto;
  margin-right: 10px; /* Spazio tra il logo e il testo */
}

.header h1 {
  margin: 0;
  font-size: 3rem;
  position: relative;
  animation: fadeIn 1.5s ease-in-out;
}

.nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
}

.nav a:hover {
  background: #4caf50;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-with-line {
  background-color: #a31621;
  color: white;
  text-align: left;
  border-bottom: 3px solid white;
  padding-left: 145px;
}

.section-with-line h2 {
  margin-top: 0;
}

/* Titolo principale migliorato */
.welcome-title {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #f8f9fa, #e9ecef, #f8f9fa);
  border-top: 2px solid #a31621;
  border-bottom: 2px solid #a31621;
  margin-top: 0;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-title h2 {
  color: #a31621;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  animation: fadeIn 1.5s ease-in-out;
}

.welcome-title p {
  color: #555;
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  animation: fadeIn 1.5s ease-in-out;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("hero-bg.jpg") no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

.hero-content h2 {
  font-size: 48px;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 24px;
  margin: 15px 0 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Player Audio */
.player-container {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.play-button {
  background-color: #00a550;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: #008c3e;
  transform: scale(1.05);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.volume-control i {
  font-size: 18px;
}

#volume-slider {
  width: 100px;
  height: 5px;
  /*    -webkit-appearance: none; */
  background: #ffffff;
  border-radius: 5px;
  outline: none;
}

#volume-slider::thumb {
  width: 15px;
  height: 15px;
  background: #00a550;
  border-radius: 50%;
  cursor: pointer;
}
.now-playing {
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.now-playing p {
  margin: 0;
  font-size: 16px;
}

/* Sezione "Chi siamo?" */
.chi-siamo {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.chi-siamo h2 {
  font-size: 36px;
  color: #a21c26;
  margin-bottom: 20px;
}

.chi-siamo p {
  font-size: 18px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px;
}

.chi-siamo .copertina {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.chi-siamo .copertina:hover {
  transform: scale(1.02);
}

/* Sezione Servizi */
.servizi {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.servizi h2 {
  font-size: 36px;
  color: #a21c26;
  margin-bottom: 40px;
  text-align: center;
}

.servizi-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.servizio {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 30px;
}

.servizio-info h3 {
  font-size: 24px;
  color: #a21c26;
  margin-bottom: 15px;
  text-align: center;
}

.servizio-info p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
  text-align: center;
}

.servizio-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.youtube-button {
  background-color: #ff0000;
  color: #ffffff;
}

.youtube-button:hover {
  background-color: #cc0000;
  transform: scale(1.05);
}

.podcast-button {
  background-color: #1db954;
  color: #ffffff;
}

.podcast-button:hover {
  background-color: #1aa34a;
  transform: scale(1.05);
}

/* Sezione Programmi */
.programmi {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.programmi h2 {
  font-size: 36px;
  color: #a21c26;
  text-align: center;
  margin-bottom: 40px;
}

.programmi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.programma {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programma:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.programma-info {
  padding: 25px;
}

.programma-info h3 {
  font-size: 24px;
  color: #a21c26;
  margin-bottom: 10px;
}

.programma-info .orario {
  color: #00a550;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.programma-info p {
  font-size: 16px;
  color: #555555;
  margin: 0;
}

/* Sezione Podcast */
.podcast {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.podcast h2 {
  font-size: 36px;
  color: #a21c26;
  margin-bottom: 20px;
}

.podcast > p {
  font-size: 18px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 40px;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.podcast-item {
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.podcast-item:hover {
  transform: translateY(-10px);
}

.podcast-cover {
  background-color: #a21c26;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-cover i {
  font-size: 60px;
  color: #ffffff;
}

.podcast-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.podcast-info h3 {
  font-size: 20px;
  color: #a21c26;
  margin: 0 0 10px;
}

.podcast-info .data {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

.podcast-info p {
  font-size: 16px;
  color: #333333;
  margin: 0 0 20px;
  flex-grow: 1;
}

.podcast-button {
  display: inline-block;
  background-color: #00a550;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.podcast-button:hover {
  background-color: #008c3e;
  transform: scale(1.05);
}

/* Sezione Galleria */
.galleria {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.galleria h2 {
  font-size: 36px;
  color: #a21c26;
  margin-bottom: 40px;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.galleria-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.galleria-item:hover {
  transform: scale(1.03);
}

.galleria-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.galleria-item:hover .galleria-img {
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: #a31621;
  color: #ffffff;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left h3,
.footer-center h3,
.footer-right h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-left h3:after,
.footer-center h3:after,
.footer-right h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #ffffff;
}

.footer-left p {
  margin: 10px 0;
  font-size: 14px;
}

.footer-left a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.istituto-logo {
  width: 60px;
  height: auto;
  margin-right: 15px;
}

.footer-logo-container p {
  font-size: 14px;
  margin: 0;
}

.social-media h3 {
  margin-top: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #ffffff;
  color: #a31621;
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #f8f9fa;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.eu-logo {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .header h1 {
    font-size: 2rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav a {
    margin: 5px;
  }

  .welcome-title h2 {
    font-size: 2rem;
  }

  .welcome-title p {
    font-size: 1.2rem;
  }

  .servizi-grid,
  .footer-container {
    flex-direction: column;
  }

  .servizio {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .section-with-line {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }

  .header-content {
    flex-direction: column;
  }

  .header-content .logo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .servizio {
    width: 85%;
  }
}
