/* 
  RADIO SOLE MARE - STILI CSS GENERALI
  Identità visiva: Mediterranea, Solare, Professionale ed Elegante
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- VARIABILI DESIGN SYSTEM --- */
:root {
  /* Palette Colori HSL (Mediterraneo) */
  --primary: 215, 72%, 16%;         /* Blu Notte Mare (#0b2545) */
  --secondary: 212, 71%, 26%;       /* Blu Profondo (#134074) */
  --azure: 198, 80%, 46%;           /* Azzurro Litorale (#169ad6) */
  --azure-light: 198, 80%, 94%;     /* Azzurro Chiarissimo per sfondi */
  --accent-sun: 34, 94%, 55%;       /* Oro Sole Caldo (#f39c12) */
  --accent-sun-hover: 27, 90%, 50%; /* Sole Tramonto (#d35400) */
  
  --bg-sand: 40, 40%, 97%;          /* Sabbia Chiarissima (#faf8f5) */
  --bg-sand-dark: 35, 30%, 91%;     /* Sabbia Calda Ombreggiata (#eadecd) */
  --text-dark: 217, 33%, 20%;       /* Testo Primario (#212d3d) */
  --text-muted: 215, 15%, 50%;      /* Testo Secondario/Disattivato */
  --text-light: 0, 0%, 100%;        /* Testo su sfondi scuri */
  --white: 0, 0%, 100%;
  --card-bg: 0, 0%, 100%;
  
  /* Tipografia */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Strutturali */
  --max-width: 1200px;
  --header-height: 80px;
  --player-height: 90px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 15px 40px rgba(11, 37, 69, 0.15);
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--bg-sand));
  color: hsl(var(--text-dark));
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(var(--player-height) + 20px); /* Spazio per player sticky */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: hsl(var(--primary));
  font-weight: 700;
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Accessibilità: Skip Link & Focus Outline */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  padding: 10px 20px;
  z-index: 10000;
  font-weight: bold;
  border-radius: 0 0 var(--border-radius-sm) 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}
:focus-visible {
  outline: 3px solid hsl(var(--azure));
  outline-offset: 4px;
}

/* --- CONTENITORI GENERALI --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: hsl(var(--accent-sun));
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.section-title.left::after {
  margin: 10px 0 0 0;
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--text-muted));
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-subtitle.left {
  margin-left: 0;
  margin-right: 0;
}

/* --- BOTTONI E ELEMENTI INTERATTIVI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
}

.btn-primary {
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn-primary:hover {
  background-color: hsl(var(--accent-sun-hover));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
  background-color: hsl(var(--primary));
  color: hsl(var(--white));
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--white));
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* --- HEADER & NAVIGAZIONE --- */
.site-header {
  height: var(--header-height);
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(11, 37, 69, 0.03);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo SVG personalizzato */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

.logo svg {
  width: 40px;
  height: 40px;
  fill: none;
}

.logo-accent {
  color: hsl(var(--azure));
}

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

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
  color: hsl(var(--text-dark));
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--azure));
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: hsl(var(--azure));
}

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

/* Pulsante Burger per Mobile */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.burger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 3px;
  position: absolute;
  transition: var(--transition);
}

.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 10px; }
.burger-bar:nth-child(3) { top: 20px; }

/* Animazione Burger attivo */
.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-color: hsl(var(--primary));
  background-image: linear-gradient(rgba(11, 37, 69, 0.75), rgba(19, 64, 116, 0.9)), url('../assets/images/hero_background.png');
  background-size: cover;
  background-position: center;
  color: hsl(var(--text-light));
  padding: 120px 0;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-title);
  color: hsl(var(--accent-sun));
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: inline-block;
  background-color: rgba(244, 162, 97, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(244, 162, 97, 0.3);
}

.hero h1 {
  color: hsl(var(--text-light));
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- PLAYER AUDIO STICKY (FONDO PAGINA) --- */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background-color: rgba(11, 37, 69, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(var(--text-light));
  z-index: 999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.sticky-player.hidden {
  transform: translateY(100%);
}

.player-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; /* Permette il troncamento del testo */
}

.player-cover-container {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background-color: hsl(var(--secondary));
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.player-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-live-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player-meta {
  min-width: 0;
}

.player-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: hsl(var(--accent-sun));
  font-weight: 700;
  letter-spacing: 1px;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-btn-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.4);
  transition: var(--transition);
}

.player-btn-play:hover {
  transform: scale(1.08);
  background-color: hsl(var(--accent-sun-hover));
}

.player-btn-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 2px; /* Centro ottico del triangolo play */
}

.player-btn-play.playing svg {
  margin-left: 0;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-btn-volume {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn-volume:hover {
  color: #fff;
}

.player-volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: hsl(var(--accent-sun));
  cursor: pointer;
  transition: var(--transition);
}

.player-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Animazione dell'onda sonora (Visualizer mockup) */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 30px;
  height: 24px;
}

.sound-wave span {
  display: block;
  width: 3px;
  height: 10%;
  background-color: hsl(var(--accent-sun));
  border-radius: 3px;
  transition: height 0.15s ease;
}

.sticky-player.playing .sound-wave span {
  animation: wave 1.2s ease infinite alternate;
}

.sticky-player.playing .sound-wave span:nth-child(1) { animation-delay: 0.1s; }
.sticky-player.playing .sound-wave span:nth-child(2) { animation-delay: 0.4s; }
.sticky-player.playing .sound-wave span:nth-child(3) { animation-delay: 0.2s; }
.sticky-player.playing .sound-wave span:nth-child(4) { animation-delay: 0.5s; }
.sticky-player.playing .sound-wave span:nth-child(5) { animation-delay: 0.3s; }

@keyframes wave {
  0% { height: 15%; }
  100% { height: 100%; }
}

/* --- SCHEDE & GRIGLIE PROGRAMMI (INDEX & PROGRAMMI) --- */
.now-playing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: -50px; /* Si sovrappone leggermente a Hero */
  position: relative;
  z-index: 10;
}

.now-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: flex;
  gap: 25px;
  align-items: center;
  border-left: 5px solid hsl(var(--azure));
}

.now-card.next {
  border-left-color: hsl(var(--accent-sun));
}

.now-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.now-img-wrap img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.badge-onair {
  display: inline-block;
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.badge-next {
  display: inline-block;
  background-color: rgba(243, 156, 18, 0.1);
  color: hsl(var(--accent-sun-hover));
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.now-time {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  font-weight: 600;
}

.now-card h3 {
  font-size: 1.35rem;
  margin: 4px 0;
}

.now-card p {
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
}

/* --- SEZIONE VALUE CARD (CHI SIAMO) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(19, 64, 116, 0.05);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 154, 214, 0.2);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: hsl(var(--azure-light));
  color: hsl(var(--azure));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.value-card p {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
}

/* --- TAB E CONTENUTI PALINSESTO (PROGRAMMI) --- */
.schedule-tabs-container {
  margin-bottom: 40px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto;
}

.tab-btn {
  background-color: hsl(var(--card-bg));
  border: 1px solid rgba(11, 37, 69, 0.1);
  color: hsl(var(--text-dark));
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: hsl(var(--azure));
  color: hsl(var(--azure));
}

.tab-btn.active {
  background-color: hsl(var(--azure));
  color: hsl(var(--white));
  border-color: hsl(var(--azure));
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  align-items: center;
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  padding: 25px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 37, 69, 0.03);
  transition: var(--transition);
}

.schedule-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left: 5px solid hsl(var(--azure));
}

.schedule-time-badge {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: hsl(var(--azure));
  background-color: hsl(var(--azure-light));
  padding: 6px 16px;
  border-radius: 30px;
  width: fit-content;
  text-align: center;
}

.schedule-details h3 {
  font-size: 1.35rem;
  margin-bottom: 5px;
}

.schedule-details p {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
}

.schedule-host {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--text-dark));
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.schedule-host-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- GRIGLIA SPEAKER (SPEAKER) --- */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 30px;
}

.speaker-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(11, 37, 69, 0.03);
}

.speaker-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 154, 214, 0.2);
}

.speaker-img-box {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: hsl(var(--secondary));
}

.speaker-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  border-radius: 0;
}

.speaker-card:hover .speaker-img-box img {
  transform: scale(1.05);
}

.speaker-socials-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(11, 37, 69, 0.9));
  display: flex;
  gap: 12px;
  justify-content: center;
  transform: translateY(100%);
  transition: var(--transition);
}

.speaker-card:hover .speaker-socials-overlay {
  transform: translateY(0);
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: hsl(var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.social-circle:hover {
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  transform: scale(1.1);
}

.social-circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.speaker-info {
  padding: 25px;
}

.speaker-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: hsl(var(--azure));
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.speaker-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.speaker-info p {
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
}

/* --- PODCAST SEZIONE --- */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.podcast-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 37, 69, 0.03);
  transition: var(--transition);
}

.podcast-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.podcast-banner {
  position: relative;
  aspect-ratio: 16/9;
  background-color: hsl(var(--primary));
  overflow: hidden;
}

.podcast-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.podcast-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: hsl(var(--azure));
  color: hsl(var(--white));
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
}

.podcast-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(244, 162, 97, 0.9);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.podcast-card:hover .podcast-play-btn-overlay {
  opacity: 1;
}

.podcast-play-btn-overlay svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 2px;
}

.podcast-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.podcast-date {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  margin-bottom: 8px;
}

.podcast-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.podcast-body p {
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.podcast-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(11, 37, 69, 0.05);
  padding-top: 15px;
}

.podcast-episode-btn {
  background: none;
  border: none;
  color: hsl(var(--azure));
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.podcast-episode-btn:hover {
  color: hsl(var(--primary));
}

.podcast-duration {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

/* --- NEWS & EVENTI (GRID) --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 37, 69, 0.03);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-banner {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background-color: hsl(var(--secondary));
}

.news-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: var(--transition);
}

.news-card:hover .news-banner img {
  transform: scale(1.03);
}

.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 30px;
}

.news-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.news-body p {
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-link {
  font-weight: 600;
  color: hsl(var(--azure));
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-link:hover {
  color: hsl(var(--primary));
}

/* --- SEZIONE DOWNLOAD APP & PROMO --- */
.promo-app {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-radius: var(--border-radius);
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 80px;
}

.promo-app-content {
  max-width: 550px;
  position: relative;
  z-index: 2;
}

.promo-app h2 {
  color: hsl(var(--text-light));
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.promo-app p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.app-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.app-btn {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: hsl(var(--text-light));
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.app-btn:hover {
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  border-color: hsl(var(--accent-sun));
  transform: translateY(-2px);
}

.app-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.app-btn-text {
  text-align: left;
}

.app-btn-text span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.app-btn-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Sfondo decorativo con onde del mare per promo */
.promo-app::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 154, 214, 0.2) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
}

/* --- BANNER SPONSOR / PARTNER --- */
.partners-section {
  background-color: hsl(var(--white));
  border-top: 1px solid rgba(11, 37, 69, 0.05);
  border-bottom: 1px solid rgba(11, 37, 69, 0.05);
  padding: 40px 0;
}

.partners-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.7;
}

.partner-logo {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--text-muted));
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-logo svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- CONTATTI PAGE & FORM --- */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contacts-info {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contacts-info h2 {
  color: hsl(var(--text-light));
  margin-bottom: 15px;
}

.contacts-info > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 35px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.contact-item-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: hsl(var(--accent-sun));
  transform: translateX(5px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-text h4 {
  color: hsl(var(--text-light));
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.contact-text p {
  font-size: 1.1rem;
  font-weight: 600;
}

.form-card {
  background-color: hsl(var(--card-bg));
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 37, 69, 0.03);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: hsl(var(--primary));
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid rgba(11, 37, 69, 0.08);
  border-radius: var(--border-radius-sm);
  background-color: hsl(var(--bg-sand));
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: hsl(var(--azure));
  background-color: hsl(var(--white));
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 15px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  background-color: rgba(46, 204, 113, 0.15);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
  display: block;
}

.form-status.error {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
  display: block;
}

/* Mappa mockata */
.map-placeholder {
  width: 100%;
  height: 350px;
  background-color: hsl(var(--bg-sand-dark));
  border-radius: var(--border-radius);
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-placeholder-inner {
  text-align: center;
  z-index: 2;
  padding: 30px;
  background-color: rgba(255,255,255,0.9);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 400px;
}

.map-placeholder-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.map-placeholder-inner p {
  color: hsl(var(--text-muted));
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* --- FOOTER GENERALE --- */
.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  padding: 80px 0 40px 0;
  border-top: 5px solid hsl(var(--azure));
  margin-top: auto; /* Mette il footer in fondo se la pagina è corta */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-col h3 {
  color: hsl(var(--text-light));
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: hsl(var(--accent-sun));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: hsl(var(--accent-sun));
  transform: translateX(5px);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: hsl(var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background-color: hsl(var(--accent-sun));
  color: hsl(var(--primary));
  transform: translateY(-3px);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: hsl(var(--accent-sun));
}

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --player-height: 100px; /* Più spazio per layout mobile */
  }
  
  body {
    padding-bottom: calc(var(--player-height) + 10px);
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  /* Menu Mobile */
  .burger-menu {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 37, 69, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    gap: 35px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.35rem;
    color: hsl(var(--white));
  }
  
  .nav-link::after {
    background-color: hsl(var(--accent-sun));
  }
  
  /* Hero */
  .hero {
    padding: 80px 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.35rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  /* Now Playing Grid */
  .now-playing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -30px;
  }
  
  .now-card {
    padding: 20px;
  }
  
  /* Player Sticky Mobile layout */
  .sticky-player {
    height: var(--player-height);
  }
  
  .player-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  
  .player-track-info {
    flex: 1;
    min-width: calc(100% - 70px);
  }
  
  .player-volume {
    display: none; /* Nascondi lo slider del volume sui dispositivi mobili per risparmiare spazio */
  }
  
  .player-controls {
    gap: 15px;
  }
  
  /* Schedule Item */
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
    border-left: none;
    border-top: 4px solid rgba(11, 37, 69, 0.05);
  }
  
  .schedule-item:hover {
    transform: translateY(-2px);
    border-left: none;
    border-top: 4px solid hsl(var(--azure));
  }
  
  .schedule-time-badge {
    margin: 0 auto;
  }
  
  .schedule-host {
    justify-content: center;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .promo-app {
    padding: 30px 20px;
  }
  
  .promo-app h2 {
    font-size: 1.75rem;
  }
}
