/*
Theme Name: Blog Musica
Author: Il tuo nome
Version: 1.0
*/

/* Reset e impostazioni generali */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e63946;
  --dark-color: #111;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Header / Navbar */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.logo a {
  color: var(--primary-color);
}

.logo .tagline {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-color);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.nav-links li a {
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
}

.nav-links li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.nav-links li a.active {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-btn, .menu-toggle {
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.search-btn:hover, .menu-toggle:hover {
  background: var(--light-gray);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  transform: translateY(-150%);
  transition: transform 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

/* Trending Section */
.trending {
  background: var(--dark-color);
  color: #ffffff;
  font-size: 14px;
  padding: 12px 0;
  overflow-x: hidden;
  border-bottom: solid 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.trending::before,
.trending::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.trending::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
}

.trending::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 100%);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.infinite-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

.infinite-marquee:hover .marquee-content {
  animation-play-state: paused;
  /* Calcoliamo manualmente la nuova posizione */
  transform: var(--current-transform);
}

.marquee-content {
  display: flex;
  width: max-content;
  will-change: transform;
  /* Animazione originale con transizione fluida */
  animation: marquee 30s linear infinite;
  transition: transform 0.4s ease-out;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-content span {
  font-size: 15px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  padding: 0 30px;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
}

.marquee-content span:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.marquee-content span:after {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
}

.marquee-content span:last-child:after {
  content: none;
}

/* Featured Section */
.featured {
  padding: 60px 0;
  background: var(--light-color);
}

/* Contenitore aggiuntivo per centrare solo il titolo */
.featured-header {
  text-align: center;
}

.featured h2 {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.featured h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; /* Inizia dal centro */
  transform: translateX(-50%); /* Centra la sottolineatura */
  width: 60px; /* Larghezza iniziale */
  height: 3px;
  background: var(--primary-color);
  transition: all 0.4s ease; /* Animazione fluida */
}

.featured h2:hover:after {
   width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: stretch; /* Forza le colonne ad avere la stessa altezza */
}

.featured-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: 100%;
  transition: none; /* Rimossa transizione globale */
}

.featured-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: var(--transition); /* Manteniamo solo transizione immagine */
}

.featured-main:hover img {
  transform: scale(1.03); /* Manteniamo solo zoom immagine */
}

.featured-main .text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  width: 100%;
  /* Nessuna transizione aggiuntiva per il testo */
}

.featured-main h3 {
  font-size: 28px;
  margin-bottom: 15px;
  /* Rimossa transizione per il titolo */
}

.featured-main p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

/* Rimosso completamente qualsiasi effetto hover per testo e titolo */

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
}

.featured-side article {
  background: #fff;
  border-left: 4px solid var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* Nuove proprietà per altezza uguale */
  min-height: 0; /* Necessario per il troncamento del testo */
}

/* MODIFICA PRINCIPALE: rimossa la proprietà transform */
.featured-side article:hover {
  background: var(--dark-color);
  color: #fff;
  /* transform: translateY(-5px); RIMOSSO */
}

/* Contenitore interno per gestire il troncamento */
.featured-side .content-wrapper {
  min-height: 0; /* Abilita il troncamento */
  display: flex;
  flex-direction: column;
}

.featured-side h4 {
  font-size: 18px;
  margin-bottom: 12px;
  
  /* Troncamento per titoli lunghi */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limita a 2 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-side p {
  font-size: 14px;
  margin: 0;
  color: inherit;
  opacity: 0.85;
  
  /* Troncamento per paragrafi lunghi */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limita a 2 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Latest Section */
.latest {
  padding: 60px 0;
}

/* Contenitore aggiuntivo per centrare solo il titolo */
.latest-header {
  text-align: center;
}

.latest h2 {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.latest h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; /* Inizia dal centro */
  transform: translateX(-50%); /* Centra la sottolineatura */
  width: 60px; /* Larghezza iniziale */
  height: 3px;
  background: var(--primary-color);
  transition: all 0.4s ease; /* Animazione fluida */
}

.latest h2:hover:after {
   width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.latest .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.latest article {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.latest article:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}

.latest img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.latest h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.latest p {
  font-size: 15px;
  color: var(--gray-color);
  line-height: 1.6;
}

/* Hero Featured */
.hero-featured {
  background: var(--dark-color);
  padding: 40px 0;
  margin: 60px auto;
  width: 90%;
  border-radius: 24px;
  max-width: 1200px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-text {
  padding: 30px; /* Aggiunto padding interno per compensare la riduzione */
}

.hero-image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero-text .tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: white;
  line-height: 1.3;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.hero-text .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 18px;
  position: relative;
  padding-bottom: 4px; /* Spazio per la sottolineatura */
  transition: var(--transition);
}

.hero-text .read-more:hover {
  gap: 12px;
}

/* Creazione della sottolineatura animata */
.hero-text .read-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.hero-text .read-more:hover::after {
  width: 100%;
}

/* Interviews Section */
.interviews {
  padding: 80px 0;
  background: var(--light-color);
}

.interviews-header {
  text-align: center;
}

.interviews h2 {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.interviews h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; /* Inizia dal centro */
  transform: translateX(-50%); /* Centra la sottolineatura */
  width: 60px; /* Larghezza iniziale */
  height: 3px;
  background: var(--primary-color);
  transition: all 0.4s ease; /* Animazione fluida */
}

.interviews h2:hover:after {
   width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.interview-grid article {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.interview-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.interview-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.interview-grid .text {
  padding: 25px;
}

.interview-grid h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.interview-grid p {
  font-size: 15px;
  color: var(--gray-color);
  line-height: 1.6;
}

/* Playlist Section */
.playlist-section {
  padding: 60px 0;
}

.playlist-section-header {
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; /* Inizia dal centro */
  transform: translateX(-50%); /* Centra la sottolineatura */
  width: 60px; /* Larghezza iniziale */
  height: 3px;
  background: var(--primary-color);
  transition: all 0.4s ease; /* Animazione fluida */
}

.section-title:hover:after {
   width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.playlist-container {
  width: 100%;
  background: var(--dark-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Artist of the Day - CON MODIFICHE */
.artist-of-the-day {
    padding: 50px 0;
    background: linear-gradient(to bottom, #fffefc, #ffffff);
}

/* Contenitore aggiuntivo per centrare solo il titolo */
.artist-of-the-day-header {
  text-align: center;
}

.artist-of-the-day h2 {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.artist-of-the-day h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%; /* Inizia dal centro */
    transform: translateX(-50%); /* Centra la sottolineatura */
    width: 60px; /* Larghezza iniziale */
    height: 3px;
    background: var(--primary-color);
    transition: all 0.4s ease; /* Animazione fluida */
}

.artist-of-the-day h2:hover:after {
   width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.artist-card {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* CONTENITORE IMMAGINE AGGIUNTO */
.artist-image {
    flex: 1 1 400px;
    max-width: 500px;
    overflow: hidden;
     border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.artist-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

/* EFFETTO ZOOM COME NELLA HERO SECTION */
.artist-image:hover img {
    transform: scale(1.05);
}

.artist-text {
    flex: 1 1 400px;
}

.artist-text h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.artist-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.artist-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.artist-cta:hover {
    gap: 15px;
}

.artist-cta::after {
    content: '';
     position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.artist-cta:hover::after {
    width: 100%;
}
        
/* Live Events */
.live-events {
  padding: 80px 0;
  background: var(--light-color);
}

/* Contenitore aggiuntivo per centrare solo il titolo */
.live-events-header {
  text-align: center;
}

.live-events h2 {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block; /* Necessario per limitare la sottolineatura al testo */
}

.live-events h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; /* Inizia dal centro */
  transform: translateX(-50%); /* Centra la sottolineatura */
  width: 60px; /* Larghezza iniziale */
  height: 3px;
  background: var(--primary-color);
  transition: all 0.4s ease; /* Animazione fluida */
}

.live-events h2:hover:after {
  width: 100%; /* Si espande alla larghezza completa del testo */
  left: 50%; /* Mantiene la posizione centrale */
  transform: translateX(-50%); /* Mantiene il centramento */
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.event-card {
  background: #fff;
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.event-date {
  text-align: center;
  min-width: 70px;
}

.event-date .day {
  font-size: 32px;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: var(--dark-color);
}

.event-date .month {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--gray-color);
  letter-spacing: 1px;
  font-weight: 600;
}

.event-info h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.event-info p {
  font-size: 16px;
  color: var(--gray-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Footer */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 22px;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 20px 0;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
  display: inline-block;
}

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

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .hero-grid {
    gap: 30px;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .artist-card {
    padding: 40px;
  }
  
  .artist-card img {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-image img {
    height: 350px;
  }
  
  .artist-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .artist-cta {
    justify-content: center;
  }
  
  .featured-main .text {
    padding: 20px;
  }
  
  .featured-main h3 {
    font-size: 24px;
  }
  
  .featured-side article {
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    font-size: 24px;
  }
  
  .featured-main h3 {
    font-size: 20px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .artist-text h3 {
    font-size: 28px;
  }
  
  .event-card {
    flex-direction: column;
    text-align: center;
  }
  
  .event-date {
    margin-bottom: 15px;
  }
}